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
13976020ca43a478d520147038bd5df59ebe31a2
394
py
Python
EM/src/test.py
quqixun/MLAlgorithms
1ad46a899a6280a08c196fb4eb0931408c8636c7
[ "MIT" ]
2
2018-04-25T18:00:28.000Z
2018-08-08T09:39:18.000Z
EM/src/test.py
quqixun/MLAlgorithms
1ad46a899a6280a08c196fb4eb0931408c8636c7
[ "MIT" ]
null
null
null
EM/src/test.py
quqixun/MLAlgorithms
1ad46a899a6280a08c196fb4eb0931408c8636c7
[ "MIT" ]
2
2019-03-03T02:55:48.000Z
2021-01-21T04:50:46.000Z
# Conventional Machine Learning Algorithms # The Script to Test Class "EM". # Author: Qixun Qu # Create on: 2018/06/20 # Modify on: 2018/06/20 # ,,, ,,, # ;" '; ;' ", # ; @.ss$$$$$$s.@ ; # `s$$$$$$$$$$$$$$$' # $$$$$$$$$$$$$$$$$$ # $$$$P""Y$$$Y""W$$$$$ # $$$$ p"$$$"q $$$$$ # $$$$ .$$...
21.888889
42
0.307107
e07942356b32fcea69f7d86398c72a017b73a101
1,113
py
Python
src/onegov/feriennet/forms/donation.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/forms/donation.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/forms/donation.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.feriennet import _ from onegov.form import Form from onegov.feriennet.const import DEFAULT_DONATION_AMOUNTS from onegov.feriennet.utils import format_donation_amounts from wtforms.fields import SelectField from wtforms.validators import InputRequired class DonationForm(Form): amount = SelectField( ...
29.289474
63
0.655885
1657fd247747c36a88d29685f06796f49dfffda7
364
py
Python
mobile/tools/python/misc/test-fluid-op-feature.py
jameswu2014/Paddle-Lite
827e349ac8eb769a873fe9b3aa961af8b8b20a96
[ "Apache-2.0" ]
3
2018-08-01T09:45:48.000Z
2021-01-06T14:55:10.000Z
mobile/tools/python/misc/test-fluid-op-feature.py
tao8687/Paddle-Lite
ebc0e39c7e8c09ad2d1b6a2923a420b2c1727635
[ "Apache-2.0" ]
null
null
null
mobile/tools/python/misc/test-fluid-op-feature.py
tao8687/Paddle-Lite
ebc0e39c7e8c09ad2d1b6a2923a420b2c1727635
[ "Apache-2.0" ]
5
2020-10-13T09:30:16.000Z
2021-06-08T02:46:17.000Z
import numpy as np import paddle.fluid as fluid exe = fluid.Executor(fluid.CPUPlace()) exe.run(fluid.default_startup_program()) data = np.array([5.0]) x = fluid.layers.data(name="x", shape=[1], dtype="float32") y = fluid.layers.relu6(x, threshold=4.0) prog = fluid.default_main_program() outputs = exe.run(prog, feed=...
26
59
0.717033
e6d3aab556fb7467d8bedfad0dd3f34ae721ce5b
4,027
py
Python
IVTp/2014/Karamyan/Karamyan 12 13_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/Karamyan/Karamyan 12 13_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/Karamyan/Karamyan 12 13_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 12 # Разработайте игру "Крестики-нолики". # Карамян Н.Г. # 28.05.2016 X = 'X' O = 'O' EMPTY = ' ' TIE = 'Ничья' NUM_SQUARES = 9 def display_instruction(): '''Выводит инструкцию.''' print ('Инструкция') print( ''' Йо! Чтобы сделать ход, введи число от 0 до 8. Чис...
25.814103
80
0.52297
e6fbf3c6b3909c33695c2b7709256a1d121c2441
927
py
Python
Curso_Python/Exercicio_banco/dados/dados.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Exercicio_banco/dados/dados.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Exercicio_banco/dados/dados.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
class Cliente: def __init__(self, nome, age, profession): self.nome = nome self.age = age self.profession = profession def adding_client(self): return [self.nome.upper(), self.age, self.profession.upper()] class Dados: def pesquisar_clientes(self, cliente, lista): ...
29.903226
84
0.510248
5d7ec32a69e3b80189f7ab1b917c7080c8f78dae
790
py
Python
leetcode/083-Remove-Duplicates-from-Sorted-List/RmDupFrSortedLst_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2017-05-18T06:11:02.000Z
2017-05-18T06:11:02.000Z
leetcode/083-Remove-Duplicates-from-Sorted-List/RmDupFrSortedLst_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/083-Remove-Duplicates-from-Sorted-List/RmDupFrSortedLst_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: # @param head, a ListNode # @return a ListNode def deleteDuplicates(self, head): if head == None: return None dic = {} p = head ...
19.75
37
0.427848
5da33907ffd6792bd8744d8597650e1f5a90ec1c
1,246
py
Python
Curso_Python/Secao5-modulos-uteis/126_JSON_javascript_Object_Notation/main1.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao5-modulos-uteis/126_JSON_javascript_Object_Notation/main1.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao5-modulos-uteis/126_JSON_javascript_Object_Notation/main1.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
""" JavaScript Object Notation - JSON JSON (JavaScript Object Notation) é um formato de troca de dados entre sistemas e programas muito leve e de fácil utilização. Muito utilizado por APIs DUMPS / Dump converte para json ###################### Python JSON dict object list, tuple array str ...
21.859649
79
0.630016
ab0bc005f16e5a0af57bd983cdaf3bf42d7d7898
273
py
Python
wagtail_localize/machine_translators/base.py
th3hamm0r/wagtail-localize
e9e0ba9245060c65e3247b62739abbed71bc2516
[ "BSD-3-Clause" ]
123
2019-11-21T12:55:04.000Z
2022-03-23T08:08:47.000Z
wagtail_localize/machine_translators/base.py
th3hamm0r/wagtail-localize
e9e0ba9245060c65e3247b62739abbed71bc2516
[ "BSD-3-Clause" ]
334
2019-11-20T10:40:08.000Z
2022-03-27T17:33:01.000Z
wagtail_localize/machine_translators/base.py
th3hamm0r/wagtail-localize
e9e0ba9245060c65e3247b62739abbed71bc2516
[ "BSD-3-Clause" ]
41
2020-01-16T17:24:52.000Z
2022-03-28T13:09:59.000Z
class BaseMachineTranslator: display_name = "Unknown" def __init__(self, options): self.options = options def translate(self, strings): raise NotImplementedError def can_translate(self, source_locale, target_locale): return False
22.75
58
0.692308
9198c694a5e47233104337452b59a219c9338d1f
2,202
py
Python
reports/ReportScorePerLanguage.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
reports/ReportScorePerLanguage.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
reports/ReportScorePerLanguage.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
import os import sys import pandas as pd from libs.ModelFactory import ModelFactory from measure.ModelMeter import ModelMeter from reports.AbstractReport import AbstractReport # Add modules to system path, needed when starting the script from the shell # Furter details see: https://stackoverflow.com/questions/16981921...
32.382353
103
0.625341
533e6c0a6b042d66b9ee26ce084c5b165530ad39
1,192
py
Python
HW3/MakeDataset.py
kvswim/kv_jhu_cv
2ddf7a9d497aef116a7c043157b8631cea45000d
[ "MIT" ]
null
null
null
HW3/MakeDataset.py
kvswim/kv_jhu_cv
2ddf7a9d497aef116a7c043157b8631cea45000d
[ "MIT" ]
null
null
null
HW3/MakeDataset.py
kvswim/kv_jhu_cv
2ddf7a9d497aef116a7c043157b8631cea45000d
[ "MIT" ]
null
null
null
#Kyle Verdeyen #Computer Vision EN.600.461 HW3 #MakeDataset.py #dataset generator import numpy as np from PIL import Image from torch.utils.data import Dataset class MakeDataset(Dataset): #face training dataset inputimages1 = [] inputimages2 = [] weights = [] def __init__(self, txt_file, root_dir, transform=None):...
30.564103
69
0.733221
534b8d026a5f2ffeee2520b3462ab54fa8c523ed
11,062
py
Python
modules/gradient_policy.py
J0nasW/Bachelorarbeit
37052be075713f2016d42782397ff875e3e982f8
[ "MIT" ]
null
null
null
modules/gradient_policy.py
J0nasW/Bachelorarbeit
37052be075713f2016d42782397ff875e3e982f8
[ "MIT" ]
null
null
null
modules/gradient_policy.py
J0nasW/Bachelorarbeit
37052be075713f2016d42782397ff875e3e982f8
[ "MIT" ]
null
null
null
""" RL MODULE WITH GRADIENT BASED SEARCH CALL BY: <gradient_policy.py> RETURN: Parameter Matrices for the inverted Pendulum Problem Stores Data of best Parameters in '...' INFO: - """ # Some dependencies import numpy as np # Maths and stuff import gym.spaces # Simulating the Environments im...
40.07971
171
0.533809
72e9a1064635d391b05c9f53115818bbfe728240
281
py
Python
day24/file.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day24/file.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day24/file.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
from os import close with open("day24/text.txt", mode="r") as file: content = file.read() print(content) with open("day24/text.txt", mode="a") as file: file.write("\nNeuer Text...") with open("day24/new_text.txt", mode="w") as file: file.write("Neuer Text...")
21.615385
50
0.633452
72f3766a94c590c45d4c682fd46d96ae0732e454
1,842
py
Python
deprecated/benchmark/ps/ctr/infer_dataset.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
170
2020-08-12T12:07:01.000Z
2022-03-07T02:38:26.000Z
deprecated/benchmark/ps/ctr/infer_dataset.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
195
2020-08-13T03:22:15.000Z
2022-03-30T07:40:25.000Z
deprecated/benchmark/ps/ctr/infer_dataset.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
67
2020-08-14T02:07:46.000Z
2022-03-28T10:05:33.000Z
import infer_args import logging import numpy as np # disable gpu training for this example import os os.environ["CUDA_VISIBLE_DEVICES"] = "" import paddle import paddle.fluid as fluid logging.basicConfig( format='%(asctime)s - %(levelname)s - %(message)s') logger = logging.getLogger("fluid") logger.setLevel(logg...
35.423077
95
0.65038
f44cf765622b99a9db68592a554beeabdd89cf01
552
py
Python
PINp/2015/GOLOVIN_A_I/task_6_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/GOLOVIN_A_I/task_6_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/GOLOVIN_A_I/task_6_7.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 6. Вариант 7. # Создайте игру, в которой компьютер загадывает имя одного из двух сооснователей компании #Google, а игрок должен его угадать. # Golovin A.I. # 02.06.2016 import random avtori = ("Ларри Пейдж", "Сергей Михайлович Брин") zagadka = random.choice(avtori) predpologenie = input("Программа загадала...
30.666667
126
0.744565
229119b9c10746a0d9fab1f1fb805666c998d817
560
py
Python
Linkedin Learning/Learning Python/Excercise Files/Exercise Files/Ch2/conditionals_finished.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
331
2019-10-22T09:06:28.000Z
2022-03-27T13:36:03.000Z
Linkedin Learning/Learning Python/Excercise Files/Exercise Files/Ch2/conditionals_finished.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
8
2020-04-10T07:59:06.000Z
2022-02-06T11:36:47.000Z
Linkedin Learning/Learning Python/Excercise Files/Exercise Files/Ch2/conditionals_finished.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
572
2019-07-28T23:43:35.000Z
2022-03-27T22:40:08.000Z
# # Example file for working with conditional statements # def main(): x, y = 10, 100 # conditional flow uses if, elif, else if(x < y): st= "x is less than y" elif (x == y): st= "x is same as y" else: st= "x is greater than y" print (st) # conditional statements let you use "a if C else...
21.538462
75
0.619643
22966bd5f07ca7c91d178deaa89fd2658d25689b
6,877
py
Python
assorbito.py
obujor/PalMaS
229e565072b4783bbe09b6a635219347f3be40e5
[ "MIT" ]
3
2016-11-21T21:10:42.000Z
2022-01-22T16:25:44.000Z
assorbito.py
obujor/PalMaS
229e565072b4783bbe09b6a635219347f3be40e5
[ "MIT" ]
null
null
null
assorbito.py
obujor/PalMaS
229e565072b4783bbe09b6a635219347f3be40e5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import csv import igraph as G from SPARQLWrapper import SPARQLWrapper, JSON from datetime import datetime import sys def add_assorbiti(g, LEGISLATURA, sparql): # ddl e legislatura maxIdDdl = -1 idddlList=[] Found = True while Found: print ...
34.21393
141
0.605206
22ca3f659ce85af8ff8a5b926f1fe2f8e41d4f84
2,570
py
Python
tests/shared/postgresql.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/shared/postgresql.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/shared/postgresql.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import os from subprocess import run, PIPE, DEVNULL, TimeoutExpired from testing.common.database import get_path_of from testing.postgresql import Postgresql as Base, SEARCH_PATHS class Snapshot(object): def __init__(self, url): self.url = url self.dump = self.create_dump() def create_dump(s...
28.241758
75
0.557977
22df77ecc5b49861091dc8d7404e720e3c6d9696
575
py
Python
SoSe-21/Uebung-4/A2-Sterne-Rechteck.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
SoSe-21/Uebung-4/A2-Sterne-Rechteck.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
SoSe-21/Uebung-4/A2-Sterne-Rechteck.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
# Aufgabe 2 - Übung 4 # # a.) Erstellen Sie ein Python-Programm, welches mittels zweier geeigneter Schleifen ein 20x5 großes Rechteck aus * erzeugt # b.) Erweitern Sie Ihr Programm so, dass durch den Nutzer ein beliebiges Rechteck in x/y-Richtung erzeugt werden kann # Tipp: Mit dem Zusatz end=" " verhindern Sie einen ...
44.230769
123
0.728696
1cf7d32e909cc5b2dad14c3f9506f8d02e4dda5f
5,515
py
Python
jupyter_book/sphinx.py
flat35hd99/jupyter-book
4d5b474e6f2b80c4d1d206e4554740ff82a344dc
[ "BSD-3-Clause" ]
2,109
2020-05-02T23:47:18.000Z
2022-03-31T22:16:54.000Z
jupyter_book/sphinx.py
flat35hd99/jupyter-book
4d5b474e6f2b80c4d1d206e4554740ff82a344dc
[ "BSD-3-Clause" ]
1,158
2020-04-29T18:07:02.000Z
2022-03-31T21:50:57.000Z
jupyter_book/sphinx.py
flat35hd99/jupyter-book
4d5b474e6f2b80c4d1d206e4554740ff82a344dc
[ "BSD-3-Clause" ]
360
2020-04-29T14:44:49.000Z
2022-03-31T09:26:23.000Z
"""Tools for interacting with Sphinx.""" import os.path as op import sys from pathlib import Path from typing import Union from sphinx.application import Sphinx from sphinx.cmd.build import handle_exception from sphinx.util import logging from sphinx.util.docutils import docutils_namespace, patch_docutils from .confi...
31.695402
85
0.621034
98db42d70cebb8491d9e015ff87f0d51ca9d3307
693
py
Python
21-fs-ias-lec/FrontEnd/socialgraph/urls.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
21-fs-ias-lec/FrontEnd/socialgraph/urls.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
21-fs-ias-lec/FrontEnd/socialgraph/urls.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
from django.urls import path from . import views from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('', views.home, name='socialgraph-home'), path('users/', views.users, name='socialgraph-users'), # path('about/', views.about, name='socialgraph-about'), # ...
38.5
81
0.708514
98fa5d517c96dd61c5d74d52faad12ebd4aac161
3,394
py
Python
RDS/circle2_use_cases/port/src/Util.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
10
2020-06-24T08:22:24.000Z
2022-01-13T16:17:36.000Z
RDS/circle2_use_cases/port/src/Util.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
78
2020-01-23T14:32:06.000Z
2022-03-07T14:11:16.000Z
RDS/circle2_use_cases/port/src/Util.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
import importlib import json # singleton tokenService = None def load_class_from_json(jsonStr: str): """ Returns the class of the given json string. """ if not isinstance(jsonStr, str): raise ValueError("Given parameter not a string.") data = jsonStr # FIX for json bug: Sometimes it...
26.107692
131
0.601061
c78b37ce6f026c0ad4a87db939d1fb937286adde
8,894
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/cnos/cnos_banner.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/cnos/cnos_banner.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/network/cnos/cnos_banner.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # # Copyright (C) 2017 Lenovo, Inc. # (c) 2017, Ansible by Red Hat, inc # This file is part of Ansible # # Ansible 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 3 of the Lice...
33.689394
114
0.650663
90dbef05cd5742f4d6ec605149def07c6b6fa087
2,659
py
Python
modeling/head/split_decoder.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
2
2020-12-22T08:40:05.000Z
2021-03-30T08:09:44.000Z
modeling/head/split_decoder.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
modeling/head/split_decoder.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @description: @author: LiuXin @contact: xinliu1996@163.com @Created on: 2020/12/30 上午9:41 """ import torch import torch.nn as nn import torch import torch.nn as nn import torch.nn.functional as F from modeling.sync_batchnorm.batchnorm import SynchronizedBatchNorm2d from modeling.model_uti...
35.453333
100
0.665288
2987bafcef1c621b910881231814963eae83c10c
7,906
py
Python
sbm_dataset.py
gdasoulas/PGSO
0fa02c626c9c9cf7e046f11ccbfd3bd6dc329a8d
[ "MIT" ]
1
2022-03-08T15:23:26.000Z
2022-03-08T15:23:26.000Z
sbm_dataset.py
gdasoulas/PGSO
0fa02c626c9c9cf7e046f11ccbfd3bd6dc329a8d
[ "MIT" ]
null
null
null
sbm_dataset.py
gdasoulas/PGSO
0fa02c626c9c9cf7e046f11ccbfd3bd6dc329a8d
[ "MIT" ]
null
null
null
import numpy as np import torch import pickle import time import matplotlib.pyplot as plt import scipy.sparse import networkx as nx def shuffle(W,c): # relabel the vertices at random idx=np.random.permutation( W.shape[0] ) #idx2=np.argsort(idx) # for index ordering wrt classes W_new=W[idx,:] W_new=W...
33.93133
204
0.592714
461eea6df22052baf17464f0fc8bff60b16d2803
6,401
py
Python
src/server/app/endpoints/editor_redesign/controllers.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
null
null
null
src/server/app/endpoints/editor_redesign/controllers.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
null
null
null
src/server/app/endpoints/editor_redesign/controllers.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
null
null
null
from flask import Flask, Blueprint, render_template, abort, g, request from flask_jwt_extended.utils import get_jwt_identity from flask_jwt_extended.view_decorators import jwt_required from ...repository.CanvasRepositoryNew import createSlide, getSlideByIndex from ...repository.AuthenticationRepository import Authenti...
32.492386
156
0.717388
316bd6fc2657326a6fd4810b72dbe88a88303797
2,185
py
Python
2019/finals/web-genie/app/main.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/web-genie/app/main.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2019/finals/web-genie/app/main.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
#!/usr/bin/python # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
27.3125
109
0.671854
b42f14047172f78463bc7dc9010f9a7ce5092923
574
py
Python
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_06_Funktionen/08_chapter_06_repetition_task_1_koncat.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_06_Funktionen/08_chapter_06_repetition_task_1_koncat.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_06_Funktionen/08_chapter_06_repetition_task_1_koncat.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- ### # File: 08_chapter_06_repetition_task_1_koncat.py # Project: Kapitel_06_Funktionen # Created Date: Sunday 24.02.2019, 14:17 # Author: Apop85 # ----- # Last Modified: Sunday 24.02.2019, 14:19 # ----- # Copyright (c) 2019 Apop85 # This software is published under the MIT ...
27.333333
88
0.698606
6f2058d0366b813a77c682d27581fac4ece74dbf
1,122
py
Python
Packs/GoogleChronicleBackstory/Scripts/ChronicleAssetEventsForHostnameWidgetScript/ChronicleAssetEventsForHostnameWidgetScript.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/GoogleChronicleBackstory/Scripts/ChronicleAssetEventsForHostnameWidgetScript/ChronicleAssetEventsForHostnameWidgetScript.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/GoogleChronicleBackstory/Scripts/ChronicleAssetEventsForHostnameWidgetScript/ChronicleAssetEventsForHostnameWidgetScript.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * import traceback from typing import Any, Dict, Union def set_arguments_for_widget_view(indicator_data: Dict[str, Any]) -> Union[Dict[str, str], str]: args = {} chronicleasset_hostname = indicator_data.get('CustomFields', {}).get('chronicleassetho...
32.057143
102
0.674688
48f82516895ed43da657860ed628f149b9b1d5d0
6,930
py
Python
official/cv/east/detect.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/east/detect.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/east/detect.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.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...
33.640777
94
0.56075
d29775d53ccf1f3a6990e0975ae0e137bf4ed0f9
9,943
py
Python
src/onegov/translator_directory/views/translator.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/translator_directory/views/translator.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/translator_directory/views/translator.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from datetime import datetime from io import BytesIO from webob.exc import HTTPNotFound from xlsxwriter import Workbook from onegov.org.models import Organisation from onegov.translator_directory import _ from onegov.core.security import Secret, Personal, Private from onegov.translator_directory import TranslatorDire...
31.071875
79
0.644272
82c4e5f6101bc2a2d962d68db2a133bfde6e8fbc
537
py
Python
src/onegov/swissvotes/forms/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/swissvotes/forms/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/swissvotes/forms/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.swissvotes.forms.attachments import AttachmentsForm from onegov.swissvotes.forms.external_resources import \ UpdateExternalResourcesForm from onegov.swissvotes.forms.page import PageForm from onegov.swissvotes.forms.search import SearchForm from onegov.swissvotes.forms.votes import UpdateDatasetForm fro...
29.833333
63
0.804469
7d7a5bc548d62fca466f253f165b006788bb0024
6,637
py
Python
src/onegov/wtfs/path.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/path.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/path.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.converters import extended_date_converter from onegov.core.converters import uuid_converter from onegov.user import Auth from onegov.user import User from onegov.user import UserCollection from onegov.wtfs.app import WtfsApp from onegov.wtfs.collections import MunicipalityCollection from onegov.wtfs.co...
23.874101
74
0.719
7dd32022a8644779eb9ef77f06d35b34d422062b
268
py
Python
website/apps/pages/views.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
1
2017-03-14T08:08:31.000Z
2017-03-14T08:08:31.000Z
website/apps/pages/views.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
null
null
null
website/apps/pages/views.py
stahlnow/stahlnow
265dd46c54f68173071d1c86218201d6e618ceeb
[ "MIT" ]
null
null
null
from django.views.generic import DetailView from pages.models import Page class PageDetailView(DetailView): model = Page def get_context_data(self, **kwargs): context = super(PageDetailView, self).get_context_data(**kwargs) return context
20.615385
72
0.727612
819348caa7d812d77f7a4f6f021f15b5cff0350a
273
py
Python
Exercicios/ex09-3d.py
BoltzBit/LP
f84d36d1bdee9a20c197cebec2810234c5311fb8
[ "MIT" ]
null
null
null
Exercicios/ex09-3d.py
BoltzBit/LP
f84d36d1bdee9a20c197cebec2810234c5311fb8
[ "MIT" ]
null
null
null
Exercicios/ex09-3d.py
BoltzBit/LP
f84d36d1bdee9a20c197cebec2810234c5311fb8
[ "MIT" ]
null
null
null
#calculo da area do trapezio base1 = float(input('Insira a primeira base: ')) base2 = float(input('Insira a segunda base: ')) altura = float(input('Insira a altura do trapezio: ')) area = (altura*(base1+base2))/2 msg = 'A area do trapezio é {}' print(msg.format(area))
22.75
54
0.684982
c4ce33a8f78d5a5a31f73757124a1f2cb356730e
505
py
Python
一、工程基础/软件工程/算法与数据结构/力扣题目/leetcode_027.py
ethan-sui/AI-algorithm-engineer-knowledge
24795b23a4cbeb6e6839e0cae65f7745be666da6
[ "Apache-2.0" ]
209
2020-10-06T08:34:45.000Z
2022-03-08T08:35:15.000Z
一、工程基础/软件工程/算法与数据结构/力扣题目/leetcode_027.py
ethan-sui/AI-algorithm-engineer-knowledge
24795b23a4cbeb6e6839e0cae65f7745be666da6
[ "Apache-2.0" ]
null
null
null
一、工程基础/软件工程/算法与数据结构/力扣题目/leetcode_027.py
ethan-sui/AI-algorithm-engineer-knowledge
24795b23a4cbeb6e6839e0cae65f7745be666da6
[ "Apache-2.0" ]
8
2020-10-09T09:07:18.000Z
2021-05-18T10:30:46.000Z
# 27、移除元素 # 一、双指针法,设置快慢指针,当快指针指向元素等于删除元素时,快指针快走一步, # 慢指针不走;否则,快慢指针同时走一步,并把快指针的元素值赋给慢指针,这样 # 慢指针走过的元素就是删除掉指定元素的数组,时间复杂度O(n),空间复杂度O(1) def removeElement0(nums, val): if len(nums) == 0: return 0 left = 0 right = 0 while right < len(nums): if nums[right] != val: nums[left] ...
24.047619
45
0.550495
c4e5e287f4cc2291e806d2dd19b038f07eb79342
62
py
Python
python/python_backup/PRAC_PYTHON/lo.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/lo.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/lo.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def pas(n): i=0 for i in range(0,n+1,2): print (i**i)-1
15.5
26
0.516129
4872dde63bef2ff3d60b8623add2c0f6a2095cbc
1,634
py
Python
aoc2020/day_11/part_2.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_11/part_2.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_11/part_2.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
from aoc2020 import * from .game_of_seats import GOS, GOSBehavior from .part_1 import Solution as Part1 class AdvancedGOSBehavior(GOSBehavior): """ If a seat is empty (L) and there are no occupied seats in a ray in the 8 directions, the seat becomes occupied. If a seat is occupied (#) and five or more se...
34.041667
115
0.580171
6f9182231fa77fe796cbe6883dfadef968bca255
2,554
py
Python
Aggregator/agg_hystreet.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
null
null
null
Aggregator/agg_hystreet.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
null
null
null
Aggregator/agg_hystreet.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
null
null
null
import boto3 import pandas as pd import json from datetime import datetime, timedelta, date from coords_to_kreis import coords_convert # - timedelta(days=10) # only for test purposes def aggregate(date): s3_client = boto3.client('s3') data = pd.DataFrame() clientFirehose = boto3.client('firehose') ...
39.90625
301
0.637823
7372ab512df122dd50a30b5a6814a42bead4bcf9
1,829
py
Python
tools/tag-generator.py
NotoOotori/study_notes
676400bec5d6f4d8f70bc0751a3ced7348115c18
[ "MIT" ]
null
null
null
tools/tag-generator.py
NotoOotori/study_notes
676400bec5d6f4d8f70bc0751a3ced7348115c18
[ "MIT" ]
null
null
null
tools/tag-generator.py
NotoOotori/study_notes
676400bec5d6f4d8f70bc0751a3ced7348115c18
[ "MIT" ]
null
null
null
''' tag-generator.py Copyright 2017 Long Qian Contact: lqian8@jhu.edu This script creates tags for your Jekyll blog hosted by Github page. No plugins required. Modified by Chen Xuyang, 2019. ''' import getopt import glob import os import sys POST_DIRS = ['_posts/',] TAG_DIR = 'tags/' def main(argv): ''' Main fu...
26.128571
104
0.539092
73d8cf0916ac37271eb2a34adaf88cd69bf57fe6
46
py
Python
frappe-bench/env/lib/python2.7/site-packages/IPython/utils/_sysinfo.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/IPython/utils/_sysinfo.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/IPython/utils/_sysinfo.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# GENERATED BY setup.py commit = u"64a584802"
15.333333
23
0.73913
fbd5362d0cd31e982331815963182589e9b0e9df
1,360
py
Python
src/classes/drawer.py
Yoann-Renard/Dimension-Y-DesktopApp
f2c6d4834338e88fb536cdd57d9c95e07079aed1
[ "MIT" ]
null
null
null
src/classes/drawer.py
Yoann-Renard/Dimension-Y-DesktopApp
f2c6d4834338e88fb536cdd57d9c95e07079aed1
[ "MIT" ]
null
null
null
src/classes/drawer.py
Yoann-Renard/Dimension-Y-DesktopApp
f2c6d4834338e88fb536cdd57d9c95e07079aed1
[ "MIT" ]
null
null
null
# import pygame import pygame from assets import * from settings import MAIN_FONT, SMOOTH_BLACK, SMOOTH_WHITE, USER_INFO_WIN_HEIGHT, WIN, WIN_WIDTH, WIN_HEIGHT class Drawer: press_any_key_fade = 0 pygame.font.init() USER_WIN_FONT = pygame.font.SysFont(MAIN_FONT, 20) def draw_welcome(self, current_ti...
36.756757
110
0.645588
791dd7a328b93e2875c7ad3a9c702cdd36c20f52
1,345
py
Python
fg/tournaments/migrations/0003_auto_20190804_2106.py
alex-evans/fgolf
8fcdfd72d168e25204a914e57d4c3478382fd473
[ "MIT" ]
null
null
null
fg/tournaments/migrations/0003_auto_20190804_2106.py
alex-evans/fgolf
8fcdfd72d168e25204a914e57d4c3478382fd473
[ "MIT" ]
null
null
null
fg/tournaments/migrations/0003_auto_20190804_2106.py
alex-evans/fgolf
8fcdfd72d168e25204a914e57d4c3478382fd473
[ "MIT" ]
null
null
null
# Generated by Django 2.2.2 on 2019-08-05 02:06 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('tournaments', '0002_auto_20190804_2056'), ] operations = [ migrations.RemoveField( model_name='groupbplayer', name='player',...
24.907407
59
0.525651
e3cac53cc39324347904a08f85e4013ef0e39736
2,783
py
Python
DnDxMTG/mtg/game.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
DnDxMTG/mtg/game.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
DnDxMTG/mtg/game.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
from discord.ext import commands import asyncio from . import sql, parse_args, mtgapi import logging import re import typing from discord import Member, Embed, Colour log = logging.getLogger(__name__) log.setLevel(logging.DEBUG) stream_handler = logging.StreamHandler() stream_format = logging.Formatter('[%(asctime)s -...
44.887097
121
0.718649
5429bc474612a6afe8623b12b5c3b4e62b0a005f
2,008
py
Python
Python/adventure/beta/lib/game_object.py
SchickDominik/progprojects
1eb9c5e3b9445f617b56bd9ceb02f2f182d730e2
[ "MIT" ]
null
null
null
Python/adventure/beta/lib/game_object.py
SchickDominik/progprojects
1eb9c5e3b9445f617b56bd9ceb02f2f182d730e2
[ "MIT" ]
null
null
null
Python/adventure/beta/lib/game_object.py
SchickDominik/progprojects
1eb9c5e3b9445f617b56bd9ceb02f2f182d730e2
[ "MIT" ]
null
null
null
import random #import game.py import random screen_width = 60 class Weapon(): def __init__(self, level): adjective = ["Dirty", "Crooked", "Big", "Old", "Shiny", "Bloody", "Sharp"] subst = [" Dagger", " Hammer", " Sword", " Bow", " Spear", " Morning Star", " Club", " Axe"] self.obj_type = "we...
45.636364
137
0.626494
585519d9b36fc9357a57d90429a7e61dbeb1c6bf
11,561
py
Python
Packs/FeedUnit42v2/Integrations/FeedUnit42v2/FeedUnit42v2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
null
null
null
Packs/FeedUnit42v2/Integrations/FeedUnit42v2/FeedUnit42v2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
null
null
null
Packs/FeedUnit42v2/Integrations/FeedUnit42v2/FeedUnit42v2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
null
null
null
import pytest from FeedUnit42v2 import Client, fetch_indicators, get_indicators_command, handle_multiple_dates_in_one_field, \ get_indicator_publication, get_attack_id_and_value_from_name, parse_indicators, parse_campaigns, \ parse_reports_and_report_relationships, create_attack_pattern_indicator, create_cours...
34.822289
120
0.717671
549034fc05c47f6bea94827f2b76d29949a1e7b2
1,106
pyde
Python
sketches/schotter4/schotter4.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/schotter4/schotter4.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/schotter4/schotter4.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
cols = 12 # Anzahl der Spalten rows = 22 # Anzahl der Reihen tilesize = 32 # Kachelgröße rotinc = 0.44 # Inkrementwert für die Rotation (in Grad) rotsum = 0 # Rotation (in Grad) padding = 3*tilesize # Abstand vom Fensterrand (rechts, links und oben, unten) dampen = 0.45 ...
35.677419
84
0.55425
3fa9011c26f7f822793bc2eecf2ab670d8ac2f05
371
py
Python
main.py
Mohammad-Robati/FuzzyCMeans
398efa3c913b1cad211f2435764edbad3db62426
[ "MIT" ]
null
null
null
main.py
Mohammad-Robati/FuzzyCMeans
398efa3c913b1cad211f2435764edbad3db62426
[ "MIT" ]
null
null
null
main.py
Mohammad-Robati/FuzzyCMeans
398efa3c913b1cad211f2435764edbad3db62426
[ "MIT" ]
null
null
null
from fcm import FCM from point import Point f = open("sample1.csv", "r") f.readline() points = [] for line in f: pointLine = line.replace("\n","").split(",") value = [] point = Point() for val in pointLine: value.append(float(val)) point.setValue(value) points.append(point) fcm = FCM(p...
20.611111
51
0.625337
4d62a1e37164921ee2e8bcb25e97249604f772b7
19,826
py
Python
deprecated/examples/local_sgd/resnet/train.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
170
2020-08-12T12:07:01.000Z
2022-03-07T02:38:26.000Z
deprecated/examples/local_sgd/resnet/train.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
195
2020-08-13T03:22:15.000Z
2022-03-30T07:40:25.000Z
deprecated/examples/local_sgd/resnet/train.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
67
2020-08-14T02:07:46.000Z
2022-03-28T10:05:33.000Z
#copyright (c) 2019 PaddlePaddle Authors. All Rights Reserve. # #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 l...
44.155902
140
0.584233
4db0a447e48ae0d00a99716b7747956f744687ab
927
py
Python
Lehrjahr_2/Modul_122/python/systeminfo.py
severinkaderli/gibb
5b4952cedacb3885ab4a0eb9fd6c1cab5674e3ee
[ "MIT" ]
5
2015-05-19T14:26:53.000Z
2016-06-24T17:03:03.000Z
Lehrjahr_2/Modul_122/python/systeminfo.py
severinkaderli/gibb
5b4952cedacb3885ab4a0eb9fd6c1cab5674e3ee
[ "MIT" ]
null
null
null
Lehrjahr_2/Modul_122/python/systeminfo.py
severinkaderli/gibb
5b4952cedacb3885ab4a0eb9fd6c1cab5674e3ee
[ "MIT" ]
6
2015-05-26T06:25:05.000Z
2020-04-30T07:25:30.000Z
#!/usr/bin/python3.4 # #SCRIPT: systeminfo.py #AUTHOR: Severin Kaderli #PURPOSE: Show systeminformation #USAGE: ./systeminfo.py import listcpuinfo import listmeminfo import sys #Get cpu info cpu = listcpuinfo.getcpuinfo() vendor = cpu[1] model = cpu[4] mhz = cpu[6] cache = cpu[7] #Get memory info mem = listmeminfo.ge...
20.152174
46
0.606257
421a8364a806eeff02b64190145138548ec4f920
363
py
Python
user-manual-de/conf.py
ecs-org/ecs-docs
0d685db17731a35c90852d7f75fbdf3791bd696c
[ "Apache-2.0" ]
1
2020-01-04T05:51:39.000Z
2020-01-04T05:51:39.000Z
user-manual-de/conf.py
ecs-org/ecs-docs
0d685db17731a35c90852d7f75fbdf3791bd696c
[ "Apache-2.0" ]
null
null
null
user-manual-de/conf.py
ecs-org/ecs-docs
0d685db17731a35c90852d7f75fbdf3791bd696c
[ "Apache-2.0" ]
1
2021-11-23T15:41:01.000Z
2021-11-23T15:41:01.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import sys sys.path.append(os.path.join(os.getcwd(),"..")) from include.baseconf import * project = 'ecs-user-manual-de' html_short_title = "ECS BenutzerInnen-Handbuch" language = 'de' latex_documents = [ (master_doc, '{}.tex'.format(project), 'Ecs Benutzer...
21.352941
72
0.680441
6713a511ac053c183df14f138d6b13d38ee38339
4,243
py
Python
test/test_npu/test_topk.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_topk.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_topk.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.742268
99
0.592034
db1a965023e7c076156eafe3ef719964b6d91432
808
py
Python
scripts/component_graph/server/util/url.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
3
2020-08-02T04:46:18.000Z
2020-08-07T10:10:53.000Z
scripts/component_graph/server/util/url.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
scripts/component_graph/server/util/url.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
1
2020-08-07T10:11:49.000Z
2020-08-07T10:11:49.000Z
#!/usr/bin/env python3 # Copyright 2019 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Provides fuchsia url conversion utility functions.""" def package_to_url(package_name): """Takes a component name and returns a...
35.130435
82
0.72896
e1e0a61e3a0706e610b20ccc934affa87fb874a3
999
py
Python
CareerTinderServer/CareerTinder/migrations/0003_auto_20160918_0128.py
sarojaerabelli/HVGS
86ec3d2de496540ca439c40f4a0c58c47aa181cf
[ "MIT" ]
1
2016-09-18T16:40:27.000Z
2016-09-18T16:40:27.000Z
CareerTinderServer/CareerTinder/migrations/0003_auto_20160918_0128.py
sarojaerabelli/HVGS
86ec3d2de496540ca439c40f4a0c58c47aa181cf
[ "MIT" ]
null
null
null
CareerTinderServer/CareerTinder/migrations/0003_auto_20160918_0128.py
sarojaerabelli/HVGS
86ec3d2de496540ca439c40f4a0c58c47aa181cf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-18 05:28 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('CareerTinder', '0002_auto_20160918_0011'), ] opera...
30.272727
115
0.60961
c004fe8322bc5e403daca84c7dd0e48a4a98ec2e
4,557
py
Python
official/cv/mobilenetv2/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
official/cv/mobilenetv2/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/cv/mobilenetv2/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2020 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...
39.626087
114
0.639456
22146780a61ef8709406fe4ea9d819f197587779
261
py
Python
top/clearlight/base/runoob/os/chdir.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
1
2020-01-16T09:23:43.000Z
2020-01-16T09:23:43.000Z
top/clearlight/base/runoob/os/chdir.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
top/clearlight/base/runoob/os/chdir.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
import os path = "F://testOSmkdir" # 查看当前工作目录 retval = os.getcwd() print("当前工作目录为%s" % retval) # 修改当前工作目录 os.chdir(path) # 查看修改后的工作目录 retval = os.getcwd() print("目录修改成功%s" % retval) print(os.path.split("F:\\Python_learn\\top\\clearlight\\base\\runoob\\os"))
17.4
75
0.689655
18c7060a15f01e7689fdea37ff1a6118fbb1f316
2,585
py
Python
myems-aggregation/config.py
18600575648/myems
38ab7d509b5ab275a4df0333e6256c586abdfbf9
[ "MIT" ]
null
null
null
myems-aggregation/config.py
18600575648/myems
38ab7d509b5ab275a4df0333e6256c586abdfbf9
[ "MIT" ]
null
null
null
myems-aggregation/config.py
18600575648/myems
38ab7d509b5ab275a4df0333e6256c586abdfbf9
[ "MIT" ]
null
null
null
from decouple import config myems_system_db = { 'host': config('MYEMS_SYSTEM_DB_HOST', default='127.0.0.1'), 'port': config('MYEMS_SYSTEM_DB_PORT', default=3306, cast=int), 'database': config('MYEMS_SYSTEM_DB_DATABASE', default='myems_system_db'), 'user': config('MYEMS_SYSTEM_DB_USER', default='root')...
43.083333
99
0.724565
18dbe283d8cdf1e17c8da83cf3b84a764db71484
3,822
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/khmer-1.1-py2.7-linux-x86_64.egg/EGG-INFO/scripts/abundance-dist.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/khmer-1.1-py2.7-linux-x86_64.egg/EGG-INFO/scripts/abundance-dist.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/khmer-1.1-py2.7-linux-x86_64.egg/EGG-INFO/scripts/abundance-dist.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
#!/usr/bin/python2.7 # # This file is part of khmer, http://github.com/ged-lab/khmer/, and is # Copyright (C) Michigan State University, 2010-2014. It is licensed under # the three-clause BSD license; see doc/LICENSE.txt. # Contact: khmer-project@idyll.org # # pylint: disable=missing-docstring,invalid-name """ Produce ...
34.745455
79
0.642072
55cd4fc09e9b1e88aec5ecffd034d5bdaee15d62
1,676
py
Python
python/coursera_python/RICE/PPE/sps.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/RICE/PPE/sps.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/RICE/PPE/sps.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
""" Week 4 practice project template for Python Programming Essentials Rock-paper-scissors-lizard-Spock """ import random # The key idea of this program is to equate the strings # "rock", "paper", "scissors", "lizard", "Spock" to numbers # as follows: # # 0 - rock # 1 - Spock # 2 - paper # 3 - lizard # 4 - scissors ...
24.289855
86
0.682578
55e4185cec4cc1870b7fb462820c5a3cd5b9356d
1,652
py
Python
Versuch2/data/old/task3.1.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
null
null
null
Versuch2/data/old/task3.1.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
null
null
null
Versuch2/data/old/task3.1.py
Tobias-Schoch/SSS
f8b078ca7f6482fc7c89d5f9e784a549459eefb7
[ "MIT" ]
1
2022-01-06T12:47:53.000Z
2022-01-06T12:47:53.000Z
import numpy as np import cv2 # ------------------------------ Aufgabe3.1 ------------------------------ # vec = np.zeros((10, 3079000)) anzahl = 0 mean = 0 value = 0 vec1 = np.zeros((480, 640)) vec2 = np.zeros((480, 640)) vec3 = np.zeros((480, 640)) vec4 = np.zeros((480, 640)) vec5 = np.zeros((480, 640)) vec6 = np....
28.482759
112
0.619855
55ea23b9e69462d68337a9ee1477557818e9aa34
2,256
py
Python
app/t1health_app/static/fusioncharts-suite-xt/integrations/django/samples/fusioncharts/samples/rendering_column2d_chart_using_dictionary_example.py
siyaochen/Tier1Health
536591a7534bbb3fb27fe889bfed9de152ec1864
[ "MIT" ]
30
2018-04-01T09:08:40.000Z
2022-01-23T07:30:07.000Z
app/t1health_app/static/fusioncharts-suite-xt/integrations/django/samples/fusioncharts/samples/rendering_column2d_chart_using_dictionary_example.py
siyaochen/Tier1Health
536591a7534bbb3fb27fe889bfed9de152ec1864
[ "MIT" ]
14
2018-07-17T08:33:35.000Z
2021-09-29T17:26:15.000Z
asset/integrations/django/samples/fusioncharts/samples/rendering_column2d_chart_using_dictionary_example.py
Piusshungu/catherine-junior-school
5356f4ff5a5c8383849d32e22a60d638c35b1a48
[ "MIT" ]
17
2016-05-19T13:16:34.000Z
2021-04-30T14:38:42.000Z
from django.shortcuts import render from django.http import HttpResponse from collections import OrderedDict # Include the `fusioncharts.py` file that contains functions to embed the charts. from ..fusioncharts import FusionCharts # Loading Data from a Ordered Dictionary # Example to create a column 2D chart with th...
38.896552
115
0.689716
3656f6c2aed3af57a49d3d1dfdfa32460fab50fe
1,316
py
Python
fuzzsvc/model/_not_used_CrashSample.py
ifoundthetao/FuzzFlow
86559ac7f85fc89510c0d9647e02880edb95aa2a
[ "MIT" ]
53
2016-08-26T02:51:45.000Z
2021-05-24T21:05:44.000Z
model/_not_used_CrashSample.py
FingerLeakers/FuzzFlow
3f2de617c3658904f9640f53a05d5e4e90634e32
[ "MIT" ]
null
null
null
model/_not_used_CrashSample.py
FingerLeakers/FuzzFlow
3f2de617c3658904f9640f53a05d5e4e90634e32
[ "MIT" ]
31
2016-08-26T04:08:31.000Z
2021-05-24T21:05:54.000Z
from app import app from datetime import * db = app.config['db'] class CrashSample(db.Model): id = db.Column(db.Integer, primary_key=True) note = db.Column(db.String(2048)) job_id = db.Column(db.Integer, db.ForeignKey('fuzzing_job.id')) job = db.relationship('FuzzingJob', foreign_keys=job_id) buc...
32.9
83
0.602584
36d3f5238131500592649071091b8723f97e7522
470
py
Python
Algorithms/Greedy/minimum_absolute_differecnce_in_an_array.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Greedy/minimum_absolute_differecnce_in_an_array.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Greedy/minimum_absolute_differecnce_in_an_array.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys def minimumAbsoluteDifference(n, arr): # 1. sort. # 2. Compare a[n] and a[n+1] and will get minimum diff values. # 3. Return minimum result. arr = sorted(arr) # O(nlog(n)) return min(abs(x -y) for x, y in zip(arr, arr[1:])) # O(n^2) if __name__ == "__main__"...
22.380952
66
0.602128
36e128e29f78f6a0fc255b7585b93cd6f701a368
427
py
Python
main.py
Cherden/glove_sensors
81a058d3a837959756e21e0b8313a7d49c5bb429
[ "MIT" ]
null
null
null
main.py
Cherden/glove_sensors
81a058d3a837959756e21e0b8313a7d49c5bb429
[ "MIT" ]
null
null
null
main.py
Cherden/glove_sensors
81a058d3a837959756e21e0b8313a7d49c5bb429
[ "MIT" ]
null
null
null
from hal import glove import time def touch_callback(data): print('Touch Data: ' + str(data)) def gyro_callback(data): scaled_data = glove.Glove.scale_gyro_values(data) print('Gyro Data: ' + str(scaled_data)) def __main(): g = glove.Glove() g.add_touch_callback(touch_callback) g.add_gyro_...
16.423077
53
0.679157
7fd4d7a78e54d913d056a716ca0092ea10df9590
3,793
py
Python
diktat.py
Rameshcjn/stenodiktat
d997d75b83f0e4a9e7c4b3fb308169adafc3c294
[ "Apache-2.0" ]
null
null
null
diktat.py
Rameshcjn/stenodiktat
d997d75b83f0e4a9e7c4b3fb308169adafc3c294
[ "Apache-2.0" ]
null
null
null
diktat.py
Rameshcjn/stenodiktat
d997d75b83f0e4a9e7c4b3fb308169adafc3c294
[ "Apache-2.0" ]
null
null
null
#!Python3 import pyttsx3 import time engine = pyttsx3.init() param = 0.7 #Parameter für Pausenzeit #####Einstellungen für TTS #rate = engine.getProperty('rate') #engine.setProperty('rate', rate+100) #voices = engine.getProperty('voices') #engine.setProperty('voice', voices[0].id) #####Str...
27.485507
124
0.590562
1832b8ec247a48503df50cfcd8016b321ce3e329
1,224
py
Python
BIZa/2014/DubsAlexandra/task_7_47.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BIZa/2014/DubsAlexandra/task_7_47.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BIZa/2014/DubsAlexandra/task_7_47.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 7. Вариант 47 # Создайте игру, в которой компьютер загадывает название одной из двенадцати линий московского метрополитена, а игрок должен его угадать. # Чем меньше попыток Вы используете, тем больше баллов заработаете # Dubs A. E. # 20.04.2016 import random print ("Программа случайным образом загадывает на...
38.25
227
0.742647
3d7e47caffb5e855e9fb70883112767dfdb3881d
680
py
Python
test/selenium_test.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-Hreherch
ad3d696abcf70a7baeb5dee6dbd3601efd8448c5
[ "MIT" ]
null
null
null
test/selenium_test.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-Hreherch
ad3d696abcf70a7baeb5dee6dbd3601efd8448c5
[ "MIT" ]
3
2020-02-11T23:13:33.000Z
2021-06-10T20:51:36.000Z
test/selenium_test.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-Hreherch
ad3d696abcf70a7baeb5dee6dbd3601efd8448c5
[ "MIT" ]
null
null
null
from selenium import webdriver import time driver = webdriver.Chrome() # gets elem by id, assert its text equals the passed in value def check_by_id(id, value): elem = driver.find_element_by_id(id) assert(elem.text == value) def test_home(): driver.get("http://199.116.235.226:8000/") # wait until al...
28.333333
61
0.679412
b1793db5cbbaec7e334bef4106f4019955d037a4
832
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v6_3/convert_applicable_territory.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v6_3/convert_applicable_territory.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v6_3/convert_applicable_territory.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
import frappe def execute(): frappe.reload_doc("stock", "doctype", "price_list_country") frappe.reload_doc("accounts", "doctype", "shipping_rule_country") frappe.reload_doctype("Price List") frappe.reload_doctype("Shipping Rule") frappe.reload_doctype("shopping_cart", "doctype", "shopping_cart_settings") # for ...
34.666667
96
0.731971
02e8ef728883dd48a862b0845f1bd09d40411fef
1,860
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/net/xmlconnections_mapEdges.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/net/xmlconnections_mapEdges.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/net/xmlconnections_mapEdges.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2009-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.ec...
32.631579
82
0.683871
02fa07b59f2c283e71c0d0f412ad5c81328ec7a5
1,914
py
Python
kafka/cruise-control/cruise-control-client/cruisecontrolclient/client/CCParameter/TimeStampParameter.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
2,177
2017-08-28T15:07:01.000Z
2022-03-30T11:06:01.000Z
kafka/cruise-control/cruise-control-client/cruisecontrolclient/client/CCParameter/TimeStampParameter.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
1,079
2017-08-30T07:25:06.000Z
2022-03-31T17:49:07.000Z
kafka/cruise-control/cruise-control-client/cruisecontrolclient/client/CCParameter/TimeStampParameter.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
489
2017-08-28T16:17:03.000Z
2022-03-31T15:52:18.000Z
from typing import Union from cruisecontrolclient.client.CCParameter.Parameter import AbstractParameter class AbstractTimestampParameter(AbstractParameter): """ For parameters that accept timestamps in milliseconds since the Epoch. """ def __init__(self, value: Union[str, int]): AbstractPara...
32.440678
88
0.656217
b2a06c153a5917771140791ef7042e535bf0f6fd
809
py
Python
rdlcompiler/systemrdl/test/lex.py
MegabytePhreak/rdl
b97912751738da9fddb42a9155f5823716809fc0
[ "MIT" ]
4
2016-05-10T20:40:34.000Z
2020-04-09T13:23:33.000Z
rdlcompiler/systemrdl/test/lex.py
MegabytePhreak/rdl
b97912751738da9fddb42a9155f5823716809fc0
[ "MIT" ]
null
null
null
rdlcompiler/systemrdl/test/lex.py
MegabytePhreak/rdl
b97912751738da9fddb42a9155f5823716809fc0
[ "MIT" ]
null
null
null
__author__ = 'MegabytePhreak' from rdlcompiler.systemrdl import lexer import os def readall(path): path = os.path.join(os.path.dirname(__file__), path) with open(path, 'rb') as f: return f.read() def lexer_test(data): l = lexer.RdlLexer() l.input(data) l.filename = '' for tok in l:...
21.864865
75
0.6267
0c0794614085809d5a003ddfe693ee7ecf41ed9f
420
py
Python
06.BinarySearch/HG/P43238.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
1
2021-11-21T06:03:06.000Z
2021-11-21T06:03:06.000Z
06.BinarySearch/HG/P43238.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
2
2021-10-13T07:21:09.000Z
2021-11-14T13:53:08.000Z
06.BinarySearch/HG/P43238.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
null
null
null
def solution(n, times): answer = 0 low = 0 high = 1000000000*1000000000 while True: if low > high: break mid = (low+high) // 2 value = 0 for time in times: value += mid // time # print(value, mid) if value >= n: answer =...
22.105263
32
0.440476
a794ec05f3ab2f4d4c008e6825577a19ea0fe731
381
py
Python
crypto/cbc-server/solve.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
6
2021-02-18T15:07:55.000Z
2022-02-04T01:38:10.000Z
crypto/cbc-server/solve.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
null
null
null
crypto/cbc-server/solve.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
null
null
null
username = raw_input('username (harus 8 huruf): ') out = raw_input('signature user: ') def xors(a, b): r = '' for i,j in zip(a,b): r += chr(ord(i)^ord(j)) return r iv = out[:32] ct = out[32:] iv = iv.decode('hex') ct = ct.decode('hex') new_iv = xors(username, 'aa|admin') new_iv = xors(new_iv, iv) a = new_iv + iv...
19.05
50
0.598425
3bb24c97a2ee4399702b91fb8adf37000c49746d
3,401
py
Python
SQL/data.py
Themishau/AGI_QR_CODE_PROJEKT
390bcd4d211e66f0520646591d7e542edc683ad6
[ "MIT" ]
null
null
null
SQL/data.py
Themishau/AGI_QR_CODE_PROJEKT
390bcd4d211e66f0520646591d7e542edc683ad6
[ "MIT" ]
null
null
null
SQL/data.py
Themishau/AGI_QR_CODE_PROJEKT
390bcd4d211e66f0520646591d7e542edc683ad6
[ "MIT" ]
null
null
null
import pandas as pd from SQL.SQL_API import SQL_Writer import datetime as dt import time class Data: def __init__(self, connection=None): #database connection self.connection = SQL_Writer() # camera settings self.camera_setting = None # gui data self.input_qr_img_...
36.569892
139
0.573655
3bdb9a9a254193fd1cf5d158299fea67a35f2291
860
py
Python
sdiff/tree_utils.py
KeepSafe/html-structure-diff
83ea2b8ad4b78b140bb5f69e3f2966c9fda01a89
[ "Apache-2.0" ]
3
2016-05-10T13:57:14.000Z
2016-09-29T21:01:53.000Z
sdiff/tree_utils.py
KeepSafe/html-structure-diff
83ea2b8ad4b78b140bb5f69e3f2966c9fda01a89
[ "Apache-2.0" ]
3
2015-10-20T22:29:37.000Z
2022-01-18T18:20:06.000Z
sdiff/tree_utils.py
KeepSafe/html-structure-diff
83ea2b8ad4b78b140bb5f69e3f2966c9fda01a89
[ "Apache-2.0" ]
1
2016-11-05T04:23:05.000Z
2016-11-05T04:23:05.000Z
from collections import deque from .model import Text def _ignore_node(node, include_symbols, exclude_symbols): in_includes = not include_symbols or node.symbol in include_symbols in_excludes = exclude_symbols and node.symbol in exclude_symbols return bool(in_includes and not in_excludes) def traverse(t...
33.076923
97
0.713953
ce1b70c08b3498c23beba3c1a1f1a632ab5a97f8
555
py
Python
leetcode/091-Decode-Ways/DecodeWays_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/091-Decode-Ways/DecodeWays_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/091-Decode-Ways/DecodeWays_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution: # @param s, a string # @return an integer def numDecodings(self, s): if s == "" or s[0] == '0': return 0 dp = [1, 1] for i in range(2, len(s) + 1): if 10 <= int(s[i - 2:i]) <= 26 and s[i - 1] != '0': dp.append(dp[i - 1] + dp[i - 2]) ...
32.647059
64
0.381982
026399ef1998e1877bb3427168f4791f1dc364bf
652
py
Python
train_model/tflite.py
liwde/ArtOrTrash
75d6aa0da53b7dd2ef328150afa4b0cb7d8c458a
[ "Apache-2.0" ]
4
2019-06-03T19:31:47.000Z
2019-06-13T13:38:58.000Z
train_model/tflite.py
liwde/ArtOrTrash
75d6aa0da53b7dd2ef328150afa4b0cb7d8c458a
[ "Apache-2.0" ]
null
null
null
train_model/tflite.py
liwde/ArtOrTrash
75d6aa0da53b7dd2ef328150afa4b0cb7d8c458a
[ "Apache-2.0" ]
null
null
null
# https://github.com/tensorflow/tensorflow/issues/26672#issuecomment-472519970 # In the master, you can already use TFLiteConverter.from_keras_model() import tensorflow as tf from constants import * model = tf.keras.models.load_model(PATH_MODEL) # Convert the model. converter = tf.lite.TFLiteConverter.from_keras_mod...
36.222222
78
0.82362
0c6baf209b4b57ef65d652495b3133e16bad5c04
228
py
Python
RDS/circle3_central_services/research_manager/src/server.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
10
2020-06-24T08:22:24.000Z
2022-01-13T16:17:36.000Z
RDS/circle3_central_services/research_manager/src/server.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
78
2020-01-23T14:32:06.000Z
2022-03-07T14:11:16.000Z
RDS/circle3_central_services/research_manager/src/server.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
#!/usr/bin/env python from __init__ import bootstrap # set the WSGI application callable to allow using uWSGI: # uwsgi --http :8080 -w app app = bootstrap("CentralServiceResearch", all=True) app.run(port=8080, server='gevent')
28.5
57
0.754386
d7e4434565a005c9b9e7daaa3aaea914f3810571
236
py
Python
Algorithms/Implementation/Find_Digits.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Algorithms/Implementation/Find_Digits.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Algorithms/Implementation/Find_Digits.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
# divisor # https://www.hackerrank.com/challenges/find-digits/problem?h_r=internal-search n = 1012 temp = n c = 0 while n: i = n%10 n //= 10 if i != 0 and temp%i==0: print(i,n,temp,temp%i) c += 1 print(c)
15.733333
79
0.567797
acb216719d90060988be0c9aee9891917d86793a
566
py
Python
m5-101/content/solutions/web-crawler/section7.py
PaulCCCCCCH/m5-101
81201b00cd81c1747ea0cd5f042a09eda02d6d1c
[ "MIT" ]
4
2021-03-25T13:15:38.000Z
2021-11-10T12:29:19.000Z
m5-101/content/solutions/web-crawler/section7.py
PaulCCCCCCH/m5-101
81201b00cd81c1747ea0cd5f042a09eda02d6d1c
[ "MIT" ]
null
null
null
m5-101/content/solutions/web-crawler/section7.py
PaulCCCCCCH/m5-101
81201b00cd81c1747ea0cd5f042a09eda02d6d1c
[ "MIT" ]
4
2021-03-25T13:18:10.000Z
2021-04-08T13:44:48.000Z
# search_key_word_improved import pickle import json import re # Read pickle File pkl_file = 'programs_improved.pkl' f = open(pkl_file, 'rb') infos, word_dict = pickle.load(f, encoding='bytes') print(len(infos)) # Search programs = [] keyword = input('Improved ! What ru looking for : ') keyword = keyword.lower() wor...
25.727273
83
0.701413
c5d32c0c14bad4ceb4b93aec643f552137d9eb8c
4,093
py
Python
Tests/Data/Parabolic/T/3D_3BHEs_array/pre/3bhes.py
fwitte/ogs
0b367872fc58ecd4e1dbfe1dcebbc847da6639d7
[ "BSD-3-Clause" ]
1
2016-09-02T11:49:52.000Z
2016-09-02T11:49:52.000Z
Tests/Data/Parabolic/T/3D_3BHEs_array/pre/3bhes.py
fwitte/ogs
0b367872fc58ecd4e1dbfe1dcebbc847da6639d7
[ "BSD-3-Clause" ]
13
2015-01-09T13:08:57.000Z
2018-01-25T12:56:17.000Z
Tests/Data/Parabolic/T/3D_3BHEs_array/pre/3bhes.py
fwitte/ogs
0b367872fc58ecd4e1dbfe1dcebbc847da6639d7
[ "BSD-3-Clause" ]
2
2019-08-13T13:37:03.000Z
2021-02-01T10:19:03.000Z
### # Copyright (c) 2012-2020, OpenGeoSys Community (http://www.opengeosys.org) # Distributed under a Modified BSD License. # See accompanying file LICENSE.txt or # http://www.opengeosys.org/project/license ### # Execute this file to generate TESPy network csv files from tespy.networks import network from tespy.compon...
30.095588
82
0.695089
76c06d507ce0a0e6ed1b9ef1f756890e69359832
4,244
py
Python
ryu/app/otherApp/plot-lbr-cdf.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
ryu/app/otherApp/plot-lbr-cdf.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
ryu/app/otherApp/plot-lbr-cdf.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
""" author:Yuegb date:2021,05,10 """ import csv import matplotlib.pyplot as plt import numpy as np con1 = open('respondTime1.csv') con1CSV = csv.reader(con1, delimiter=',') con2 = open('respondTime2.csv') con2CSV = csv.reader(con2, delimiter=',') con3 = open('respondTime3.csv') con3CSV = csv.reader(con3, delimiter=',...
29.068493
129
0.626532
8b0ce195684d9b4db956c6c108cd9fe0afa9ba12
1,051
py
Python
Disease.py
Shubh0501/RH
3093ef1fe9f3285cc274af522e69b80d48fd94cd
[ "MIT" ]
1
2018-03-20T05:24:58.000Z
2018-03-20T05:24:58.000Z
Disease.py
Shubh0501/RH
3093ef1fe9f3285cc274af522e69b80d48fd94cd
[ "MIT" ]
null
null
null
Disease.py
Shubh0501/RH
3093ef1fe9f3285cc274af522e69b80d48fd94cd
[ "MIT" ]
2
2018-03-19T17:51:13.000Z
2018-10-11T07:49:22.000Z
from mongoengine import * class Disease(Document): name = StringField(required=True, unique=True, max_length=30) pd = IntField(required=True) cli = IntField(required=True) loc = IntField(required=True) symptoms = ListField(StringField(max_length=30)) def __init__(self, name, symptoms, pd, loc,...
22.847826
70
0.598478
8c71098b97ee8cf69708e919561bd4b736279a9a
57
py
Python
JavaScript/exerciciosJSGit/41/j.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
JavaScript/exerciciosJSGit/41/j.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
JavaScript/exerciciosJSGit/41/j.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
n1 = 27 n2 = 54 if n1 > n2 or n2 < 50: print('sjdfh')
14.25
22
0.526316
0f9c3abde001ed1728753d8f5f17e708e5433c95
90
py
Python
02_Python/hello.py
DaviNakamuraCardoso/Harvard-CS50-Web-Programming
afec745eede41f7b294c3ee6ebaff9ac042e5e4c
[ "MIT" ]
null
null
null
02_Python/hello.py
DaviNakamuraCardoso/Harvard-CS50-Web-Programming
afec745eede41f7b294c3ee6ebaff9ac042e5e4c
[ "MIT" ]
null
null
null
02_Python/hello.py
DaviNakamuraCardoso/Harvard-CS50-Web-Programming
afec745eede41f7b294c3ee6ebaff9ac042e5e4c
[ "MIT" ]
null
null
null
def main(): print("Hello, World!") return if __name__ == "__main__": main()
11.25
26
0.555556
2cfdc2a529bf99bc40607a15b6847d9d3f213946
2,895
py
Python
user_sync/connector/directory.py
sabanawaf/user-sync.py
51a7f9165d1740120b172edf507f1b3b3d5e57f8
[ "MIT" ]
3
2017-03-15T16:34:25.000Z
2017-04-07T12:10:22.000Z
user_sync/connector/directory.py
sabanawaf/user-sync.py
51a7f9165d1740120b172edf507f1b3b3d5e57f8
[ "MIT" ]
78
2019-04-18T17:20:32.000Z
2022-02-23T14:19:54.000Z
user_sync/connector/directory.py
sabanawaf/user-sync.py
51a7f9165d1740120b172edf507f1b3b3d5e57f8
[ "MIT" ]
18
2019-07-01T19:39:34.000Z
2021-06-06T10:56:41.000Z
# Copyright (c) 2016-2017 Adobe Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modif...
47.459016
107
0.642142
d706095e8e7986eabac6cb42ade5b8dc67a10b13
593
py
Python
Packs/FireEyeHelix/Integrations/FireEyeHelix/test_data/constants.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/FireEyeHelix/Integrations/FireEyeHelix/test_data/constants.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/FireEyeHelix/Integrations/FireEyeHelix/test_data/constants.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
DICT_1to5 = {'1': 1, '2': 2, '3': 3, '4': 4, '5': 5} DICT_NESTED_123 = {'nested': {'1': 1, '2': 2, '3': 3}} DICT_LST_AAB2B = {'aa_b': [{'2': 2}, {'2': 3}], 'b': 4} DICT_LST_NESTED = {'master': {'id': 1, 'assets': [{'id': 1, 'name': 'a'}, {'id': 2, 'name': 'b'}]}} TRANS_DICT_134 = {'1': 'one', '3': 'three', '4': 'four'...
53.909091
99
0.522766
d77d5657e34937a62dbce5acffd8bc7e47d7ed4d
852
py
Python
Hackathons_19_20/Brainwaves 2019/complaint status tracking/complant tracking.py
aviggithub/Hackathons_20
a1bbc63cff3bd71982017749a0cc162d684e452b
[ "Apache-2.0" ]
null
null
null
Hackathons_19_20/Brainwaves 2019/complaint status tracking/complant tracking.py
aviggithub/Hackathons_20
a1bbc63cff3bd71982017749a0cc162d684e452b
[ "Apache-2.0" ]
null
null
null
Hackathons_19_20/Brainwaves 2019/complaint status tracking/complant tracking.py
aviggithub/Hackathons_20
a1bbc63cff3bd71982017749a0cc162d684e452b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Dec 28 21:55:20 2018 @author: avi """ import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sbn file_n_trn="D:\\Python project\\brainwaves 2019\\complaint status tracking\\train.csv" file_n_tst="D:\\Python project\\brainwaves 20...
18.933333
87
0.714789
0f71c5efd8202bf37be9e7b2f3718dee6af7715a
305
py
Python
30 Days of Code/30DoC-day-25/30DoC_day_25.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
30 Days of Code/30DoC-day-25/30DoC_day_25.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
30 Days of Code/30DoC-day-25/30DoC_day_25.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
from math import sqrt from sys import stdin def isPrime(n): for i in range(2, int(sqrt(n))+1): if n % i == 0: return False return True n = int(input()) for x in stdin: y = int(x) if (y >= 2 and isPrime(y)): print("Prime") else: print("Not prime")
17.941176
38
0.527869
7e865e4aaebe8d2ef2bee6ecf5bb85b519e0798e
343
py
Python
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/000Exercicios/01estoque/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/000Exercicios/01estoque/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/000Exercicios/01estoque/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
from estoque import Estoque # nome = input('Nome do produto: ') # preco = float(input('Preco do produto: R$ ')) # quantidade = int(input('Quantidade de produtos: ')) p1 = Estoque('Tv', 50, 10) p1.adicionar(10) p1.remover(5) print(f'Produto inicial: Produto: {p1.nome}, R${p1.preco}, Quantidade: {p1.quantidade}') pri...
26.384615
88
0.676385
0e8566311f7c08ae08c194f7aa691d0174946e7a
833
py
Python
flaskblog/app/routes.py
john526/Flask
02e48871bc8a48b6de8eca95f88967fe9349f058
[ "MIT" ]
null
null
null
flaskblog/app/routes.py
john526/Flask
02e48871bc8a48b6de8eca95f88967fe9349f058
[ "MIT" ]
null
null
null
flaskblog/app/routes.py
john526/Flask
02e48871bc8a48b6de8eca95f88967fe9349f058
[ "MIT" ]
null
null
null
from app import app from flask import render_template,flash,redirect,url_for from app.form import LoginForm @app.route('/') # @app.route('/index') def index(): user = {'name':'john'} posts = [ { 'author':{'username':'koffi'}, 'body':'Beautiful pretty' }, { ...
24.5
111
0.594238
1dfb6fc1d41b11829c47ef2704933acdaec4acf2
858
py
Python
scripts/paths.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
3
2020-08-02T04:46:18.000Z
2020-08-07T10:10:53.000Z
scripts/paths.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
16
2020-09-04T19:01:11.000Z
2021-05-28T03:23:09.000Z
scripts/paths.py
OpenTrustGroup/fuchsia
647e593ea661b8bf98dcad2096e20e8950b24a97
[ "BSD-3-Clause" ]
1
2020-08-07T10:11:49.000Z
2020-08-07T10:11:49.000Z
# Copyright 2016 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os.path import platform FUCHSIA_DIR = os.environ["FUCHSIA_DIR"] ZIRCON_ROOT = os.path.join(FUCHSIA_DIR, "zircon") FUCHSIA_BUILD_DIR = os.environ["FUC...
31.777778
85
0.706294
2d73a99d8a3bbb265351e7050beed23bd2811725
723
py
Python
scriptsForPreprocessing/convert_csv_descript_file_to_single_category.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2022-01-03T14:00:17.000Z
2022-01-03T14:00:17.000Z
scriptsForPreprocessing/convert_csv_descript_file_to_single_category.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
null
null
null
scriptsForPreprocessing/convert_csv_descript_file_to_single_category.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2021-12-21T09:50:53.000Z
2021-12-21T09:50:53.000Z
import os, json import pandas as pd name_csv = 'validation-annotations-object-segmentation.csv' path_to_folder = r'resources' path_to_csv_file = os.path.join(path_to_folder, name_csv) df = pd.read_csv (path_to_csv_file) print("Preview count record: ", len(df.index)) df = df[(df.LabelName == "/m/0ch_cf") | (df.LabelNa...
45.1875
196
0.701245
2d7df4a179d029fb7b2fae4da4529e2bf7cb6ab1
402
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v8_5/remove_quotations_route_in_sidebar.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/patches/v8_5/remove_quotations_route_in_sidebar.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v8_5/remove_quotations_route_in_sidebar.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2017, Frappe and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe def execute(): frappe.reload_doctype("Portal Settings") frappe.db.sql(""" delete from `tabPortal Menu Item` where (route = '/quotations' and title ...
25.125
59
0.718905
2db04ed9c1c4824d306c63072a7e613e2e28a209
8,795
py
Python
tstpw.py
profefonso/tsptw
862c9e4a8c81e5449034a6105d211392ff7b2e7d
[ "MIT" ]
1
2022-03-09T15:24:50.000Z
2022-03-09T15:24:50.000Z
tstpw.py
profefonso/tsptw
862c9e4a8c81e5449034a6105d211392ff7b2e7d
[ "MIT" ]
null
null
null
tstpw.py
profefonso/tsptw
862c9e4a8c81e5449034a6105d211392ff7b2e7d
[ "MIT" ]
null
null
null
import math import random import numpy as np class Recorrido: def __init__(self, N): self.puntaje = 0 self.recorrido = np.zeros(N, dtype=int) class TSPTW: def __init__(self): # Inicializacion de Variables self.ITERACIONES = 1000 self.VALORMAXIMO = 10000...
36.799163
115
0.497328
879b05b106386de2515876e677808bab953c4142
3,293
py
Python
nodes/ue05_action_server/turtlebot3_client_path_from_file.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
nodes/ue05_action_server/turtlebot3_client_path_from_file.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
nodes/ue05_action_server/turtlebot3_client_path_from_file.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/env python3 # ################################################################################ # edited WHS, OJ , 15.11.2021 # # usage # $1 roslaunch turtlebot3_gazebo turtlebot3_empty_world.launch # $2 rosrun rtc turtlebot3_server_path.py # $3 rosrun rtc turtlebot3_client_path_from_file.py impor...
35.793478
101
0.556028
aa13318a1c48bc77cea0b0e6bb0cd642713ffb9b
465
py
Python
Chapter9_AdvancedDL/Chapter9_5_RegressionProblems/caliHousingLinReg.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter9_AdvancedDL/Chapter9_5_RegressionProblems/caliHousingLinReg.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter9_AdvancedDL/Chapter9_5_RegressionProblems/caliHousingLinReg.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
from sklearn.linear_model import LinearRegression from tf_utils.caliHousingDataAdvanced import CALIHOUSING if __name__ == "__main__": cali_data = CALIHOUSING() x_train, y_train = cali_data.x_train, cali_data.y_train x_test, y_test = cali_data.x_test, cali_data.y_test num_features = cali_data.num_feat...
29.0625
59
0.76129
a4e30dbf170d86d3e93de3ee35c2967e961f1345
219
py
Python
tools/pythonpkg/tests/fast/types/test_boolean.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
2,816
2018-06-26T18:52:52.000Z
2021-04-06T10:39:15.000Z
tools/pythonpkg/tests/fast/types/test_boolean.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
1,310
2021-04-06T16:04:52.000Z
2022-03-31T13:52:53.000Z
tools/pythonpkg/tests/fast/types/test_boolean.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
270
2021-04-09T06:18:28.000Z
2022-03-31T11:55:37.000Z
import duckdb import numpy class TestBoolean(object): def test_bool(self, duckdb_cursor): duckdb_cursor.execute("SELECT TRUE") results = duckdb_cursor.fetchall() assert results[0][0] == True
27.375
44
0.689498
351e9e2dd5c937eb436b42974c39e28fabcb82bc
1,658
py
Python
source-code/ESP8266/__install-files.py
ZakkyMas/Audio_Mixer_Wireless
7f7a002fdf8eebe6891c06b803f1a3bd0c2da7ca
[ "MIT" ]
3
2020-12-30T18:37:13.000Z
2021-10-02T07:43:10.000Z
source-code/ESP8266/__install-files.py
ZakkyMas/Audio_Mixer_Wireless
7f7a002fdf8eebe6891c06b803f1a3bd0c2da7ca
[ "MIT" ]
null
null
null
source-code/ESP8266/__install-files.py
ZakkyMas/Audio_Mixer_Wireless
7f7a002fdf8eebe6891c06b803f1a3bd0c2da7ca
[ "MIT" ]
1
2021-10-02T07:47:53.000Z
2021-10-02T07:47:53.000Z
import os, sys, re, subprocess com = re.compile(r'^com[0-9]+$') data = os.listdir() port = "" __all__ = [] Status = True Com_1 = 'esptool.py --port {} erase_flash' print('Install "esptool"\n') os.system('pip install esptool') print('') print('Install "adafruit-ampy"\n') os.system('pip install adafruit-am...
25.90625
149
0.571773
52b31d78f405f1d3127caa9277bce605309a990a
1,538
py
Python
assignments/Embeddings/1-baseline.py
oliverguhr/htw-nlp-lecture
371042ef360510d12ac454198056656967317cc1
[ "MIT" ]
11
2019-04-10T14:26:58.000Z
2021-04-21T06:10:51.000Z
assignments/Embeddings/1-baseline.py
oliverguhr/htw-nlp-lecture
371042ef360510d12ac454198056656967317cc1
[ "MIT" ]
null
null
null
assignments/Embeddings/1-baseline.py
oliverguhr/htw-nlp-lecture
371042ef360510d12ac454198056656967317cc1
[ "MIT" ]
1
2021-06-10T13:05:12.000Z
2021-06-10T13:05:12.000Z
import fastText import re def load_data(path): file = open(path, "r",encoding="utf-8") data = file.readlines() return [line.split("\t") for line in data] def save_data(path,data): with open(path, 'w',encoding="utf-8") as f: f.write("\n".join(data)) def train(): ...
34.954545
138
0.609883
52e2840686a2b1baa8fee08a1cecc5ec0b2c98a1
2,868
py
Python
scripts/Startup_WLS_12c/StartFMW_12212.py
Doag/Forms
849acc3ad1dcca3d51ac7627783f556674f13001
[ "MIT" ]
10
2017-03-16T12:35:25.000Z
2020-04-23T18:49:20.000Z
scripts/Startup_WLS_12c/StartFMW_12212.py
Doag/Forms
849acc3ad1dcca3d51ac7627783f556674f13001
[ "MIT" ]
1
2017-09-25T09:52:43.000Z
2017-09-25T11:36:13.000Z
scripts/Startup_WLS_12c/StartFMW_12212.py
Doag/Forms
849acc3ad1dcca3d51ac7627783f556674f13001
[ "MIT" ]
20
2018-02-20T12:00:49.000Z
2022-01-28T17:16:14.000Z
#!/usr/bin/python from java.io import FileInputStream import java.lang import os import string propInputStream = FileInputStream("domain.properties") configProps = Properties() configProps.load(propInputStream) Username = configProps.get("username") Password = configProps.get("password") Host = configProps.get("hos...
31.866667
97
0.594491