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
67bae529c5068092277502fe70d566a8b4fd7238
190
py
Python
Decorators/Basic/dec_1.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
Decorators/Basic/dec_1.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
Decorators/Basic/dec_1.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
def divide_2(param): return param// 2 def add_2(param): return param + 2 def operate(func, param): return func(param) if __name__ == '__main__': print(operate(add_2, 4))
14.615385
28
0.647368
e1d6f3c5945f71fbcf1501a6cb2e8fb7d6d0235d
21,996
py
Python
ryu/app/otherApp/shortest_path_forward_ygb.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
ryu/app/otherApp/shortest_path_forward_ygb.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
ryu/app/otherApp/shortest_path_forward_ygb.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
from ryu.base import app_manager from ryu.ofproto import ofproto_v1_3 from ryu.controller import ofp_event from ryu.controller.handler import MAIN_DISPATCHER, CONFIG_DISPATCHER from ryu.controller.handler import set_ev_cls from ryu.topology.api import get_switch, get_link from ryu.topology import event from ryu.lib.pac...
42.960938
129
0.512502
c00a4581a277806cfab422c5c91e9199a153376f
3,702
py
Python
src/SHD/gm_preview.py
mheob/SHD.GraphicsMagick
fbf84f1feb7e5ca76a3e99238653d8f15c6b504a
[ "MIT" ]
1
2021-01-30T15:50:13.000Z
2021-01-30T15:50:13.000Z
src/SHD/gm_preview.py
mheob/SHD.GraphicsMagick
fbf84f1feb7e5ca76a3e99238653d8f15c6b504a
[ "MIT" ]
null
null
null
src/SHD/gm_preview.py
mheob/SHD.GraphicsMagick
fbf84f1feb7e5ca76a3e99238653d8f15c6b504a
[ "MIT" ]
null
null
null
import sys from os import listdir, path from PythonMagick import Image from SHD.utils.file_utilities import FileUtilities from SHD.utils.gm_utilities import GmUtilities from SHD.utils.terminal_utilities import TerminalUtilities def main(): # determine if application is a script file or frozen exe applicatio...
31.641026
102
0.598865
22304916a752886d8c3c95fc2f6737c4d6cacfaf
2,005
py
Python
monitor/alt/monitor-alte-version.py
magns12/python-hwmonitor
12bceb82303ebcd22a2ef1be1c5afee0c29da269
[ "MIT" ]
null
null
null
monitor/alt/monitor-alte-version.py
magns12/python-hwmonitor
12bceb82303ebcd22a2ef1be1c5afee0c29da269
[ "MIT" ]
null
null
null
monitor/alt/monitor-alte-version.py
magns12/python-hwmonitor
12bceb82303ebcd22a2ef1be1c5afee0c29da269
[ "MIT" ]
2
2021-03-22T09:32:14.000Z
2021-03-22T09:43:14.000Z
# Module importieren import csv import psutil import mysql.connector import sys import os import time # Befehlszeile leeren (Windows) os.system('cls') # Datenbankverbindung - Zugangsdaten datenbank = mysql.connector.connect( host="localhost", user="root", password="", database="hwmonitor" ) # Update-Interval...
26.381579
104
0.600998
58b7b1fc11643974ba614f4e8472ceb16d27fe64
140
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.01-list/pg-9.5-list-remove-method.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.01-list/pg-9.5-list-remove-method.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.01-list/pg-9.5-list-remove-method.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
fruits = ['apple', 'mango', 'coconut', 'banana', 'orange'] print(fruits) fruits.remove("coconut") print(fruits) fruits.remove("pineapple")
20
58
0.692857
18adea8d8b1c5d6b072c5bd43dc6fdd49d78ead7
615
py
Python
demos/Multiscale/bonding_curve/model/config.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
56
2020-07-08T23:23:15.000Z
2022-03-11T20:43:09.000Z
demos/Multiscale/bonding_curve/model/config.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
41
2020-07-11T23:24:06.000Z
2022-01-28T13:28:07.000Z
demos/Multiscale/bonding_curve/model/config.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
39
2020-07-15T11:35:04.000Z
2022-02-01T16:02:51.000Z
from cadCAD.configuration import Experiment from cadCAD.configuration.utils import config_sim from .state_variables import genesis_states from .partial_state_update_block import partial_state_update_block from .sys_params import sys_params from .parts.utils import * sim_config = config_sim( { 'N': 1, ...
23.653846
67
0.752846
18eac96edf47574a9fb267cd31ce54a57b6fc4ec
5,871
py
Python
src/onegov/activity/utils.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/activity/utils.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/activity/utils.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import lxml import random import re import sedate import string from datetime import date, timedelta from functools import partial from pyquery import PyQuery as pq INTERNAL_IMAGE_EX = re.compile(r'.*/storage/[0-9a-z]{64}') NUM_RANGE_RE = re.compile(r'\d+-\d+') DATE_RANGE_RE = re.compile(r'\d{4}-\d{2}-\d{2}:\d{4}-\d...
25.415584
79
0.55936
8302913fd7705d86c63949267806f61612595965
773
py
Python
tag_1/p_2_3_sortiere_drei_zahlen.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
tag_1/p_2_3_sortiere_drei_zahlen.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
tag_1/p_2_3_sortiere_drei_zahlen.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
""" 2 If-Abfragen (Tag 1) 2.3 Sortiere drei vorher festgelegte Zahlen und gib sie in der richtigen Reihenfolge aus. Hinweis: Zeichne dazu zuerst ein Ablaufdiagramm oder Flussdiagramm. """ from hilfprogramme import float_number_input if __name__ == '__main__': print('Aufsteigende Sortierung von drei Zahlen a, b und...
28.62963
89
0.538163
55da0e7078061c151ee1035c4269de1ebf188d30
76
py
Python
tests/stress_test/loop.py
DockerComposeFiles/ARM
b0faddb525ad134ff8c589c370d8e61ab030c216
[ "MIT" ]
null
null
null
tests/stress_test/loop.py
DockerComposeFiles/ARM
b0faddb525ad134ff8c589c370d8e61ab030c216
[ "MIT" ]
null
null
null
tests/stress_test/loop.py
DockerComposeFiles/ARM
b0faddb525ad134ff8c589c370d8e61ab030c216
[ "MIT" ]
null
null
null
running = True def do_nothing(): pass while running: do_nothing()
9.5
17
0.657895
3623c3efe21de54db99738ec4d1ba3101ba52c70
9,435
py
Python
imwievaluation/latex.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
null
null
null
imwievaluation/latex.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
null
null
null
imwievaluation/latex.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
1
2019-10-19T10:11:17.000Z
2019-10-19T10:11:17.000Z
""" Module for generating pretty pdf results using Latex. """ from pylatex import Document, Section, TikZ, Axis, Plot, Center, LargeText, HorizontalSpace, LineBreak from pylatex.utils import NoEscape, bold from pylatex import Package from imwievaluation.resultscsv import ResultsCSV from imwievaluation.surveyxml import ...
56.837349
502
0.533969
363f4b1da975eeb7ef4723c0b5c1454fccd4e3a8
210
py
Python
build/lib/pynanz/Downloader.py
salemileandro/pynanz
5e22f4c4a0914714d1df668d3d0be54c90a8ff6d
[ "MIT" ]
null
null
null
build/lib/pynanz/Downloader.py
salemileandro/pynanz
5e22f4c4a0914714d1df668d3d0be54c90a8ff6d
[ "MIT" ]
null
null
null
build/lib/pynanz/Downloader.py
salemileandro/pynanz
5e22f4c4a0914714d1df668d3d0be54c90a8ff6d
[ "MIT" ]
null
null
null
import yfinance as yf import pandas as pd from pandas import Timestamp, Timedelta class Downloader: """ """ def __init__(self): pass def __call__(self, *args, **kwargs): pass
15
40
0.62381
36eacf8ca1c2ce0331edc3a68144125d8b67526f
52
py
Python
src/rki_covid19csv_parser/__init__.py
Hoffmann77/rki-covid19csv-parser
bd1a543e33c341573b4eb3a40c8c5f0181bd17b3
[ "Apache-2.0" ]
null
null
null
src/rki_covid19csv_parser/__init__.py
Hoffmann77/rki-covid19csv-parser
bd1a543e33c341573b4eb3a40c8c5f0181bd17b3
[ "Apache-2.0" ]
null
null
null
src/rki_covid19csv_parser/__init__.py
Hoffmann77/rki-covid19csv-parser
bd1a543e33c341573b4eb3a40c8c5f0181bd17b3
[ "Apache-2.0" ]
null
null
null
from .csv_parser import * __version__ = "1.2.0"
13
26
0.653846
3d328603fd1aa8e48c0ad10c241fbc678c2bbf3b
2,055
py
Python
19.07.2018/fuzzy-set.py
Kingpin007/SC-Lab
ba8fa9dfca4b950ebcb8c8d409f7e215c7971925
[ "MIT" ]
null
null
null
19.07.2018/fuzzy-set.py
Kingpin007/SC-Lab
ba8fa9dfca4b950ebcb8c8d409f7e215c7971925
[ "MIT" ]
null
null
null
19.07.2018/fuzzy-set.py
Kingpin007/SC-Lab
ba8fa9dfca4b950ebcb8c8d409f7e215c7971925
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Spyder Editor This is a temporary script file. """ fuzzySet1 = list(tuple()) fuzzySet2 = list(tuple()) inputFile1 = "input-fuzzy-set-1.txt" inputFile2 = "input-fuzzy-set-2.txt" file = open(inputFile1,"r") # Take input from file 1 to get 1st fuzzy set for line in file: lineList = line.s...
27.77027
60
0.623358
3db59d839437f5da24a957f6c7edeb62544b1d7e
1,510
py
Python
Home/urls.py
NAL0/nalbt
c411ead60fac8923e960e67f4bbad5c7aeffc614
[ "MIT" ]
null
null
null
Home/urls.py
NAL0/nalbt
c411ead60fac8923e960e67f4bbad5c7aeffc614
[ "MIT" ]
null
null
null
Home/urls.py
NAL0/nalbt
c411ead60fac8923e960e67f4bbad5c7aeffc614
[ "MIT" ]
null
null
null
#from django.conf.urls import url from . import views from django.urls import path, include #urlpatterns = [ # url(r'^$', views.index, name='index'), # url(r'^mission', views.index2, name='index2'), #] urlpatterns = [ path('', views.index, name='index'), path('sdgs/', views.index2, name='index2'), p...
40.810811
52
0.62053
b10e0cc101a084b9fe8b2716933087f6da90222e
578
py
Python
examples/adminEx2/simulate_auth/models.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
5
2020-07-14T07:48:10.000Z
2021-12-20T21:20:10.000Z
examples/adminEx2/simulate_auth/models.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
7
2021-03-26T03:13:38.000Z
2022-03-12T00:42:03.000Z
examples/adminEx2/simulate_auth/models.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
1
2021-02-16T07:04:25.000Z
2021-02-16T07:04:25.000Z
from django.db import models from django.utils.translation import gettext_lazy as _ class SimulateContentType(models.Model): app_label = models.CharField(max_length=100) model = models.CharField(_('python model class name'), max_length=100) class SimulatePermission(models.Model): name = models.CharField...
30.421053
74
0.717993
b150e23418fc2178538ab7e22fe792b53c0f1d5e
119
py
Python
storage/emulated/0/qpython/scripts3/take_picture.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
storage/emulated/0/qpython/scripts3/take_picture.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
storage/emulated/0/qpython/scripts3/take_picture.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
import androidhelper droid = androidhelper.Android() droid.cameraInteractiveCapturePicture('/sdcard/qpython.jpg')
23.8
61
0.806723
b8d9841dfc4f3bf0836ea5e2a280f46ea9629702
4,773
py
Python
Apps/Vorverarbeitung/validate_subjects_corpus.py
RGreinacher/bachelor-thesis
60dbc03ce40e3ec42f2538d67a6aabfea6fbbfc8
[ "MIT" ]
1
2021-04-13T10:00:46.000Z
2021-04-13T10:00:46.000Z
Apps/Vorverarbeitung/validate_subjects_corpus.py
RGreinacher/bachelor-thesis
60dbc03ce40e3ec42f2538d67a6aabfea6fbbfc8
[ "MIT" ]
null
null
null
Apps/Vorverarbeitung/validate_subjects_corpus.py
RGreinacher/bachelor-thesis
60dbc03ce40e3ec42f2538d67a6aabfea6fbbfc8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # import python libs import re import json import argparse import json import random import sys from os import listdir from os.path import isfile, join from pprint import pprint as pp from collections import deque # import project libs sys.path.append('../Auswertung') ...
37
129
0.686151
02e27c2734e039f56ffeb4a3cd98d28080e62c86
343
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-008/ph-8.20-exer.3-is-palindrome.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-008/ph-8.20-exer.3-is-palindrome.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-008/ph-8.20-exer.3-is-palindrome.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
input_str = input("Enter a String: ") length = len(input_str) end = length - 1 start = 0 while start < int(length/2): if input_str[start] == input_str[end]: ok = 1 else: ok = 0 end = end - 1 start = start + 1 if ok == 1: print(input_str, "is palindrome") else: print(input_str...
17.15
42
0.58309
02e5f10498496674bdd2169e46d7bbb8e183cf46
3,672
py
Python
research/cv/ESRGAN/src/loss/gan_loss.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/ESRGAN/src/loss/gan_loss.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/ESRGAN/src/loss/gan_loss.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...
37.469388
97
0.639434
0c1cf2de1223eaf6ecf0bb7f0b14395684a24d16
352
py
Python
exercises/de/test_02_10_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/de/test_02_10_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/de/test_02_10_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
def test(): assert ( "doc1.similarity(doc2)" in __solution__ or "doc2.similarity(doc1)" in __solution__ ), "Vergleichst du die Ähnlichkeit der zwei Docs?" assert ( 0 <= float(similarity) <= 1 ), "Der Ähnlichkeitswert muss eine Zahl zwischen 0 und 1 sein. Hast du ihn korrekt berechnet?" ...
39.111111
98
0.664773
a748f9a0075833b5dbe5889e0fbbbb6b2818e63d
3,062
py
Python
frappe-bench/apps/erpnext/erpnext/restaurant/doctype/restaurant_order_entry/restaurant_order_entry.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/restaurant/doctype/restaurant_order_entry/restaurant_order_entry.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/restaurant/doctype/restaurant_order_entry/restaurant_order_entry.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe, json from frappe.model.document import Document from frappe import _ from erpnext.controllers.queries import item_query ...
35.195402
121
0.758981
ac08dcf098229948a9f57e4ce08201c1a8029ea8
3,008
py
Python
pureddos-master/pureddos.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2019-02-15T19:46:29.000Z
2020-03-11T06:50:33.000Z
pureddos.py
AlessioScarlet/pureddos
04c9fe0aa854e42bae9c20d64aa39865c6ce9edd
[ "Unlicense" ]
1
2019-02-15T19:37:56.000Z
2019-03-10T09:21:47.000Z
pureddos.py
AlessioScarlet/pureddos
04c9fe0aa854e42bae9c20d64aa39865c6ce9edd
[ "Unlicense" ]
11
2019-02-20T00:46:04.000Z
2020-10-13T07:28:58.000Z
import os import sys import urllib2 import threading import random from banner import access ######################################## # Educational purpose only # ######################################## # I'm not responsible for your actions # ######################################## """ Cr...
30.08
140
0.524269
3bd07763bc28945d91e93628fdce743f2cbd85bc
13,162
py
Python
sdks/pysdk/pyevtsdk/action.py
Laighno/evt
90b94e831aebb62c6ad19ce59c9089e9f51cfd77
[ "MIT" ]
1,411
2018-04-23T03:57:30.000Z
2022-02-13T10:34:22.000Z
sdks/pysdk/pyevtsdk/action.py
Zhang-Zexi/evt
e90fe4dbab4b9512d120c79f33ecc62791e088bd
[ "Apache-2.0" ]
27
2018-06-11T10:34:42.000Z
2019-07-27T08:50:02.000Z
sdks/pysdk/pyevtsdk/action.py
Zhang-Zexi/evt
e90fe4dbab4b9512d120c79f33ecc62791e088bd
[ "Apache-2.0" ]
364
2018-06-09T12:11:53.000Z
2020-12-15T03:26:48.000Z
import json import pyevt from pyevt import abi, ecc, libevt, evt_link from . import base class Action(base.BaseType): def __init__(self, name, domain, key, data): super().__init__(name=name, domain=domain, key=key, data=data) c...
38.825959
143
0.63972
0279ae0de2d7bf49b583b20447d9eeb5a0218d3e
112
py
Python
analysis/__init__.py
yashpatel5400/anonychain
921804832839f3639477cfc441f138bc2f5ad685
[ "MIT" ]
1
2018-08-31T07:16:40.000Z
2018-08-31T07:16:40.000Z
analysis/__init__.py
yashpatel5400/anonychain
921804832839f3639477cfc441f138bc2f5ad685
[ "MIT" ]
null
null
null
analysis/__init__.py
yashpatel5400/anonychain
921804832839f3639477cfc441f138bc2f5ad685
[ "MIT" ]
1
2018-07-01T18:03:01.000Z
2018-07-01T18:03:01.000Z
""" __author__ = Yash Patel __name__ = __init__.py __description__ = Init for analysis part of package """
22.4
52
0.714286
5a75a36509b716ca3825b7c8ec8392b4b571660a
1,733
py
Python
IVTa/2014/ALEKSEEV_I_S/task_7_50.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTa/2014/ALEKSEEV_I_S/task_7_50.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTa/2014/ALEKSEEV_I_S/task_7_50.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 7. Вариант 50. #Разработайте систему начисления очков для задачи 6, в соответствии с которой #игрок получал бы большее количество баллов за меньшее количество попыток. # Alekseev I.S. # 15.05.2016 import random print("Программа случайным образом загадывает название одной из республик СССР, а игрок должен ...
25.115942
176
0.64397
ceba61a4b5eb0bc0895add8f9f1833549c950d59
363
py
Python
algorithms/greedy/largest_permutation.py
PlamenHristov/HackerRank
2c875995f0d51d7026c5cf92348d9fb94fa509d6
[ "MIT" ]
null
null
null
algorithms/greedy/largest_permutation.py
PlamenHristov/HackerRank
2c875995f0d51d7026c5cf92348d9fb94fa509d6
[ "MIT" ]
null
null
null
algorithms/greedy/largest_permutation.py
PlamenHristov/HackerRank
2c875995f0d51d7026c5cf92348d9fb94fa509d6
[ "MIT" ]
null
null
null
import sys def largest_permutation(N, K, A): if K >= N - 1: print(*sorted(A, reverse=True), sep=' ') else: max_num = sys.stdin.readline() for i in range(len(A)) print(*A, sep=' ') if __name__ == '__main__': N, K = list(map(int, sys.stdin.readline().split())) A = li...
19.105263
55
0.548209
0c683f414334b94dc0cc79306c060692583d2f97
12,127
py
Python
aten/src/ATen/native/quantized/cpu/qnnpack/configure.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
4
2020-02-03T23:48:24.000Z
2022-01-06T14:39:06.000Z
aten/src/ATen/native/quantized/cpu/qnnpack/configure.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
14
2021-10-14T06:58:50.000Z
2021-12-17T11:51:07.000Z
aten/src/ATen/native/quantized/cpu/qnnpack/configure.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
7
2020-08-31T22:49:59.000Z
2020-09-15T14:29:07.000Z
#!/usr/bin/env python3 # # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. import confu from confu import arm, x86 parser = confu.standard_parser() def main(ar...
42.550877
82
0.532283
0cad30d682e0191850fbdba633b31a053f2722a9
4,362
py
Python
apps/profile/admin.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2018-05-18T08:38:29.000Z
2018-05-22T08:26:09.000Z
apps/profile/admin.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
apps/profile/admin.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import reverse from django.utils import html from apps.user.models import User from apps.user.admin import UserAdmin as apps_UserAdmin from django.utils.encoding import force_text from django.utils.translation import gettext_lazy as _ from apps.user.admin import UserAd...
34.346457
129
0.580009
6864f8da3ef0bb46e71b6122215225d874ba5be2
5,865
py
Python
src/onegov/winterthur/views/settings.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/winterthur/views/settings.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/winterthur/views/settings.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import textwrap from onegov.core.security import Secret from onegov.directory import Directory, DirectoryCollection from onegov.form import Form from onegov.form.fields import HtmlField from onegov.org.models import Organisation from onegov.org.views.settings import handle_generic_settings from onegov.winterthur impor...
30.706806
78
0.623359
76c60b80595ee3faa3a6cac87da1f5a85d5a5f29
326
py
Python
exercises/fr/exc_02_05_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/fr/exc_02_05_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/fr/exc_02_05_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
from spacy.lang.fr import French nlp = French() # Importe la classe Doc from ____ import ____ # Texte désiré : "Allez, on commence !" words = ["Allez", ",", "on", "commence", "!"] spaces = [____, ____, ____, ____, ____] # Crée un Doc à partir des mots et des espaces doc = ____(____, ____=____, ____=____) print(doc....
21.733333
46
0.668712
96caa7de517c7219b5775905a3152b514519b7d2
24,589
py
Python
tests/onegov/swissvotes/test_fields.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/swissvotes/test_fields.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/swissvotes/test_fields.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from cgi import FieldStorage from datetime import date from decimal import Decimal from io import BytesIO from onegov.form import Form from onegov.swissvotes.fields import PolicyAreaField from onegov.swissvotes.fields import SwissvoteDatasetField from onegov.swissvotes.fields import SwissvoteMetadataField from onegov.s...
31.483995
79
0.547847
8c2e048e8beaf0df4a2ca062976415219b8323b0
2,746
py
Python
myspiders/spider_hr/icbc_spider.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
2
2021-11-27T06:40:47.000Z
2022-01-06T03:12:46.000Z
myspiders/spider_hr/icbc_spider.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
myspiders/spider_hr/icbc_spider.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
from myspiders.ruia import Item, Spider, Bs4HtmlField, Bs4AttrField, Bs4TextField, JsonField, RegexField from urllib.parse import urlencode, urlparse, urljoin, quote from config import Target import re import math class IcbcItem(Item): url_next = 'https://job.icbc.com.cn/pc/index.html#/main/social/postDetail/' ...
34.759494
148
0.644574
8ca3edb6193d1f0323466e0f7ea2e39a40927afb
539
py
Python
Python/M01_ProgrammingBasics/L06_NestedLoops/Exercises/Solutions/P03_SumPrimeNonPrime.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L06_NestedLoops/Exercises/Solutions/P03_SumPrimeNonPrime.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L06_NestedLoops/Exercises/Solutions/P03_SumPrimeNonPrime.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
1
2022-02-23T13:03:14.000Z
2022-02-23T13:03:14.000Z
command = input() prime_number = 0 non_prime_number = 0 while command != "stop": number = int(command) delitel = 0 if number < 0: print("Number is negative.") else: for x in range(2, number + 1): if number % x == 0: delitel += 1 if delitel == 1: ...
23.434783
61
0.58256
ba2f3f6778214e9c75253299a9c54fcf68b7bd60
1,697
py
Python
Packs/Pcysys/Scripts/PenteraDynamicTable/PenteraDynamicTable_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Pcysys/Scripts/PenteraDynamicTable/PenteraDynamicTable_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Pcysys/Scripts/PenteraDynamicTable/PenteraDynamicTable_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from PenteraDynamicTable import pentera_dynamic_table PENTERA_INCIDENT = { "details": "Pentera Insight details: BlueKeep (CVE-2019-0708) Vulnerability Discovery", "name": "Pentera Insight: BlueKeep (CVE-2019-0708) Vulnerability Discovery", "penteraoperationdetails": [ { "host": None, ...
34.632653
118
0.485563
fa5a2d92f8b6d771f2c80b016a6ec172d8b2858f
68,142
py
Python
frappe-bench/env/lib/python2.7/site-packages/dropbox/client.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/dropbox/client.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/dropbox/client.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
""" Deprecated v1 API client. To be removed once v2 is at parity with v1. """ from __future__ import absolute_import import base64 from io import BytesIO import os import re import six import urllib import warnings if six.PY3: basestring = str # pylint: disable=redefined-builtin,useless-suppression url_path...
40.828041
122
0.603138
a8e4d3a1b3df561874191e13c60ed2ed767b49b9
74,134
py
Python
Packs/CarbonBlackDefense/Integrations/CarbonBlackEndpointStandard/CarbonBlackEndpointStandard.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CarbonBlackDefense/Integrations/CarbonBlackEndpointStandard/CarbonBlackEndpointStandard.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CarbonBlackDefense/Integrations/CarbonBlackEndpointStandard/CarbonBlackEndpointStandard.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 * # noqa # pylint: disable=unused-wildcard-import from CommonServerUserPython import * # noqa import traceback from typing import Dict, Any, Tuple import json # Disable insecure warnings requests.packages.urllib3.disable_warnings() # pylint: disable=no-m...
44.022565
125
0.638668
7e796909be47bb9f6c888f80732f169025de899a
1,502
py
Python
VisualizationLib/Visualization.py
jvollhueter/pyMANGA-1
414204a394d44405225b4b8224b19464c1006f1d
[ "MIT" ]
1
2021-03-16T08:35:50.000Z
2021-03-16T08:35:50.000Z
VisualizationLib/Visualization.py
jvollhueter/pyMANGA-1
414204a394d44405225b4b8224b19464c1006f1d
[ "MIT" ]
67
2019-11-14T11:29:52.000Z
2022-03-09T14:37:11.000Z
VisualizationLib/Visualization.py
jvollhueter/pyMANGA-1
414204a394d44405225b4b8224b19464c1006f1d
[ "MIT" ]
6
2019-11-12T11:11:41.000Z
2021-08-12T13:57:22.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @date: 2018-Today @author: jasper.bathmann@ufz.de """ ## Parent class for Visualization class Visualization: ## Constructor for project visualization. # Depending on project-arguments the different constructors are called. # @param args the visualizatio...
31.291667
76
0.659787
7e958928ccd2042087f8650ade4cc3f6e83343c6
3,216
py
Python
Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/tf_cnn_benchmarks.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
2
2021-08-30T14:12:09.000Z
2022-01-20T02:14:22.000Z
Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/tf_cnn_benchmarks.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
null
null
null
Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/tf_cnn_benchmarks.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
32.484848
81
0.679415
cb51a8fa845b6bd7dd2b7af355813adde1491512
1,643
py
Python
research/recommend/Fat-DeepFFM/src/metrics.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/recommend/Fat-DeepFFM/src/metrics.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/recommend/Fat-DeepFFM/src/metrics.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...
34.957447
86
0.654291
1de3d3c29bea712b6b727a9915b5ec23d495d506
1,773
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch08_binary_trees/solutions/ex05_levelorder.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch08_binary_trees/solutions/ex05_levelorder.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch08_binary_trees/solutions/ex05_levelorder.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden from ch05_datastructures.util.queue import Queue from ch08_binary_trees.intro.intro_binary_tree_node import BinaryTreeNode def levelorder(start_node, action): if start_node is None: return to_process = Queue() ...
21.888889
73
0.672871
69ce3e531b0f7d1e08dc8593be35dbe466baa3ba
1,012
py
Python
next2018/amer/orange/cloudalizer.py
nutanix/hackathon
b9d47c4911036b6037c5d817cbe38af83b83de7a
[ "MIT" ]
1
2018-05-15T21:25:17.000Z
2018-05-15T21:25:17.000Z
next2018/amer/orange/cloudalizer.py
nutanix/hackathon
b9d47c4911036b6037c5d817cbe38af83b83de7a
[ "MIT" ]
1
2021-06-01T22:18:54.000Z
2021-06-01T22:18:54.000Z
next2018/amer/orange/cloudalizer.py
nutanix/hackathon
b9d47c4911036b6037c5d817cbe38af83b83de7a
[ "MIT" ]
1
2018-05-15T23:59:11.000Z
2018-05-15T23:59:11.000Z
from flask import Flask, request, Response app = Flask(__name__) action_queue = [] @app.route("/") def main(): return "Nutanix Hackathon 2018 - Did It All For The Cookies" @app.route("/cmd", methods=['GET', 'POST']) def cmd(): global action_queue if request.method == 'POST': request_data = request.ge...
23.534884
75
0.668972
2a63dedcc077a1c32d8bfb8d02e7fd14886038ca
927
py
Python
Packs/Confluera/Scripts/ConflueraProgressionsDataWarroom/ConflueraProgressionsDataWarroom.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Confluera/Scripts/ConflueraProgressionsDataWarroom/ConflueraProgressionsDataWarroom.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Confluera/Scripts/ConflueraProgressionsDataWarroom/ConflueraProgressionsDataWarroom.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CommonServerPython import * from CommonServerUserPython import * # Executes confluera-fetch-progressions command/script progressions_data = demisto.executeCommand('confluera-fetch-progressions', {'hours': '72'}) if progressions_data[1] and progressions_data[1]['Contents']: progressions = progressions_data[1]...
23.175
91
0.61165
630c011d8c6a97e37d47349a5d4a03913e58c5df
55,714
py
Python
src/Sephrasto/Charakter.py
qeqar/Sephrasto
ce46d46299b2c793f015e25c98908773c39b1dee
[ "MIT" ]
null
null
null
src/Sephrasto/Charakter.py
qeqar/Sephrasto
ce46d46299b2c793f015e25c98908773c39b1dee
[ "MIT" ]
null
null
null
src/Sephrasto/Charakter.py
qeqar/Sephrasto
ce46d46299b2c793f015e25c98908773c39b1dee
[ "MIT" ]
null
null
null
import Definitionen import Fertigkeiten import Objekte import lxml.etree as etree import re import binascii import copy import logging import collections from EventBus import EventBus from Wolke import Wolke from Hilfsmethoden import Hilfsmethoden, WaffeneigenschaftException from PyQt5 import QtWidgets, QtCore import o...
45.406683
238
0.604983
6317bfad680b856bb783bc222cbb191ed4333e80
2,110
py
Python
Packs/ShiftManagement/Scripts/GetShiftsPerUser/GetShiftsPerUser_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ShiftManagement/Scripts/GetShiftsPerUser/GetShiftsPerUser_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ShiftManagement/Scripts/GetShiftsPerUser/GetShiftsPerUser_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from GetShiftsPerUser import main ROLES = [ { 'name': 'Shift1', 'shifts': [ {'fromDay': 0, 'fromHour': 8, 'fromMinute': 0, 'toDay': 3, 'toHour': 12, 'toMinute': 0}, {'fromDay': 4, 'fromHour': 16, 'fromMinute': 0, 'toDay': 6, ...
25.421687
79
0.462559
2dafd7c1cbbd0bf0762f4b1b2c07f61c2accd051
2,878
py
Python
research/hpc/pinns/src/Schrodinger/loss.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/hpc/pinns/src/Schrodinger/loss.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/hpc/pinns/src/Schrodinger/loss.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...
41.114286
112
0.612578
fae04409a8ff22be65702d46b294d18e0d92223c
1,490
py
Python
src/onegov/election_day/hidden_by_principal.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/hidden_by_principal.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/hidden_by_principal.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
# Defaults for hiding elements if not value is provided in principal.yml always_hide_candidate_by_entity_chart_percentages = False always_hide_candidate_by_district_chart_percentages = False hide_connections_chart_intermediate_results = False hide_candidates_chart_intermediate_results = False def hide_candidates_cha...
33.111111
72
0.721477
35aab8dbd60fcc88a1999bb9009c00494025cfb5
800
py
Python
RedBook/ch8/books/views.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
RedBook/ch8/books/views.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
RedBook/ch8/books/views.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.views.generic.base import TemplateView from django.views.generic import ListView, DetailView from books.models import Book, Author, Publisher #-- TemplateView class BooksModelView(TemplateView): template_name = 'books/index.html' def get_context_data(self, **kw...
22.222222
63
0.72625
ea2194f715f4127f04d3d8e6d344b3dd34a14356
17,977
py
Python
CharakterEquipmentWrapper.py
JoergRue/Sephrasto
a4fa3c2c1b095b674a9e71416ca448e3be3de225
[ "MIT" ]
null
null
null
CharakterEquipmentWrapper.py
JoergRue/Sephrasto
a4fa3c2c1b095b674a9e71416ca448e3be3de225
[ "MIT" ]
null
null
null
CharakterEquipmentWrapper.py
JoergRue/Sephrasto
a4fa3c2c1b095b674a9e71416ca448e3be3de225
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Mar 10 17:25:53 2017 @author: Lennart """ from Wolke import Wolke import CharakterEquipment from PyQt5 import QtWidgets, QtCore import Objekte import Definitionen from WaffenPicker import WaffenPicker import logging from Hilfsmethoden import Hilfsmethoden class EquipWrapper(...
51.216524
216
0.543417
ea3ca15af2430a7359287e31fbd88cae38d69d38
395
py
Python
packages/watchmen-rest-doll/test/watchmen_rest_doll_test/create_default_users.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest-doll/test/watchmen_rest_doll_test/create_default_users.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest-doll/test/watchmen_rest_doll_test/create_default_users.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from unittest import TestCase from watchmen_rest_doll.util import crypt_password class CreateDefaultUsers(TestCase): # noinspection PyMethodMayBeStatic def test_create(self): # for imma-super print(f'imma-super[{crypt_password("change-me")}]') # for imma-admin print(f'imma-admin[{crypt_password("1234abcd")...
26.333333
53
0.751899
17efd845992d82e4065c66f6aaa2f9930ebe5398
3,063
py
Python
PyLabs/lab1-7.py
XeroDef/labs50
a71e9474e395d7814326ac7dc56754fc8c94d123
[ "MIT" ]
null
null
null
PyLabs/lab1-7.py
XeroDef/labs50
a71e9474e395d7814326ac7dc56754fc8c94d123
[ "MIT" ]
null
null
null
PyLabs/lab1-7.py
XeroDef/labs50
a71e9474e395d7814326ac7dc56754fc8c94d123
[ "MIT" ]
null
null
null
import math a = float(input('Введите а: ')) x = float(input('Введите х: ')) b = 0 i = 0 listG = [] listF = [] listY = [] listX = [] listA = [] count = int(input('Сколько считать? ')) m = float(input('Какой шаг? ')) var = int(input('введи значение: ')) while count >= 0: if count == 0: con = str(input('прод...
30.939394
103
0.386549
d821bee5cd0024debab1541b28e31dbaf7b68998
1,016
py
Python
checks/load_in_browser_test.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
19
2018-04-20T11:03:41.000Z
2022-01-12T20:58:56.000Z
checks/load_in_browser_test.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
160
2018-04-05T16:12:59.000Z
2022-03-01T13:01:27.000Z
checks/load_in_browser_test.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
8
2018-11-05T13:07:57.000Z
2021-06-11T11:46:43.000Z
import unittest from pprint import pprint from checks import load_in_browser from checks.config import Config class TestLoadInBrowser(unittest.TestCase): def test_basics(self): """Loads a simple HTML web page to check basic functionality""" url = 'https://httpbin.org/html' config = Config...
32.774194
77
0.658465
dc46fbb11a506941a356220e98ed50e775994a52
760
py
Python
apps/utils/constants.py
dongdawang/ssrmgmt
a41e595aec503dcb191a20ea8d58233bbb8f2db0
[ "MIT" ]
null
null
null
apps/utils/constants.py
dongdawang/ssrmgmt
a41e595aec503dcb191a20ea8d58233bbb8f2db0
[ "MIT" ]
null
null
null
apps/utils/constants.py
dongdawang/ssrmgmt
a41e595aec503dcb191a20ea8d58233bbb8f2db0
[ "MIT" ]
null
null
null
METHOD_CHOICES = ( ('none', 'none'), ('rc4', 'rc4'), ('rc4-md5', 'rc4-md5'), ('rc4-md5-6', 'rc4-md5-6'), ('aes-128-ctr', 'aes-128-ctr'), ('aes-192-ctr', 'aes-192-ctr'), ('aes-256-ctr', 'aes-256-ctr'), ('aes-128-cfb', 'aes-128-cfb'), ('aes-192-cfb', 'aes-192-cfb'), ('aes-128-cf...
23.75
49
0.544737
f4b85f832db5e1a58ce1f837cbe1f10ee7897c8c
15,622
py
Python
Packs/PingIdentity/Integrations/PingOne/PingOne_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/PingIdentity/Integrations/PingOne/PingOne_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/PingIdentity/Integrations/PingOne/PingOne_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from PingOne import Client, unlock_user_command, deactivate_user_command, activate_user_command, set_password_command, \ add_user_to_group_command, remove_from_group_command, get_groups_for_user_command, get_user_command, \ create_user_command, update_user_command, delete_user_command import pytest TEST_USER_I...
31.181637
120
0.614966
df407a32a6b6a7c38fe19031cc5c1e005748a62a
667
py
Python
pacman-arch/test/pacman/tests/sync010.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/sync010.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/sync010.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Install a package from a sync db with cascaded dependencies" sp1 = pmpkg("dummy", "1.0-2") sp1.files = ["bin/dummy", "usr/man/man1/dummy.1"] sp1.depends = ["dep1"] sp2 = pmpkg("dep1") sp2.files = ["bin/dep1"] sp2.depends = ["dep2"] sp3 = pmpkg("dep2") sp3.files = ["bin/dep2"] for p ...
23.821429
80
0.656672
df7933f0f5e8d7a82252e8a92d0387244aa312be
83
py
Python
Chapter1_Intro/test.py
karimbouaziz95/Pro_python
9ecb60b9d08e18acc99eb62efca2d93ca6bf968e
[ "MIT" ]
null
null
null
Chapter1_Intro/test.py
karimbouaziz95/Pro_python
9ecb60b9d08e18acc99eb62efca2d93ca6bf968e
[ "MIT" ]
null
null
null
Chapter1_Intro/test.py
karimbouaziz95/Pro_python
9ecb60b9d08e18acc99eb62efca2d93ca6bf968e
[ "MIT" ]
null
null
null
import numpy as np my_list = np.array([1, 2, 3], dtype=np.float32) print(my_list)
16.6
47
0.698795
1da136c3bc9c87a61bcb168499c2baa4167f5203
1,006
py
Python
nz_django/day6/classview_decorator_demo/classview_decorator_demo/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_django/day6/classview_decorator_demo/classview_decorator_demo/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_django/day6/classview_decorator_demo/classview_decorator_demo/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from django.views import View from django.http import HttpResponse from django.shortcuts import redirect,reverse from django.utils.decorators import method_decorator def login_required(func): def wrapper(request, *args, **kwargs): if request.GET.get('username'): return func(request, *args, **kw...
27.189189
77
0.697813
981f33ef06a238a30bd2b4b2ca3213a6c6323153
313
py
Python
SoSe-21/Code-Vorlesungen/VL-5/Mathematische-Berechnungen-3.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
SoSe-21/Code-Vorlesungen/VL-5/Mathematische-Berechnungen-3.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
SoSe-21/Code-Vorlesungen/VL-5/Mathematische-Berechnungen-3.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
PI = 3.1415 # Globale Variable # Funktion zum Berechnen des Kreisumfangs def kreisumfang(radius): kreisumfang_berechnet = 2 * PI * radius return kreisumfang_berechnet def zylinder(radius, hohe): zylinder_berechnet = hohe * kreisumfang(radius) return zylinder_berechnet print(zylinder(350, 100))
26.083333
51
0.757188
7f28d11e46e8deb8fdcf2ca36338926c3aeb73ad
616
py
Python
Curso_Python/Secao2-Python-Basico-Logica-Programacao/45_gerando_cpfs/atualizado.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao2-Python-Basico-Logica-Programacao/45_gerando_cpfs/atualizado.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao2-Python-Basico-Logica-Programacao/45_gerando_cpfs/atualizado.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
cpf = '168.995.350-09' cpf1 = cpf.replace('.', '') cpf1 = cpf1.replace('-', '') soma_primeiro = 0 soma_segundo = 0 soma1 = 10 soma2 = 11 for numero in range(0, 11, 1): if numero < 9: soma_primeiro += int(cpf1[numero]) * soma1 soma1 -= 1 if numero < 10: soma_segundo += int(cpf1[numero]...
18.117647
50
0.582792
7f4b2b45f548c44e48200bc5d5854cc5fc056abd
722
py
Python
leetcode/082-Remove-Duplicates-from-Sorted-List-II/RmDupFrSortedLst2_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/082-Remove-Duplicates-from-Sorted-List-II/RmDupFrSortedLst2_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/082-Remove-Duplicates-from-Sorted-List-II/RmDupFrSortedLst2_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 {ListNode} head # @return {ListNode} def deleteDuplicates(self, head): if head == None: return None t = {} p = h...
24.066667
37
0.441828
12047e4739314893bafa0335c0526b6203b03896
2,002
py
Python
Top_Movies_by_Genre.py
Ash993/Movie-Recommender-System
ac0cd32003994f3870a6b2c17782599e2a53953b
[ "MIT" ]
2
2020-04-18T06:33:22.000Z
2021-02-12T02:47:03.000Z
Top_Movies_by_Genre.py
ayush1999guptA/Movie-Recommender-System
56669a0ee7d0abca15a989cd6cd4b0fdff1f6061
[ "MIT" ]
null
null
null
Top_Movies_by_Genre.py
ayush1999guptA/Movie-Recommender-System
56669a0ee7d0abca15a989cd6cd4b0fdff1f6061
[ "MIT" ]
null
null
null
import pandas as pd from ast import literal_eval def init(): data = pd.read_csv("dataset/movies_metadata.csv") data['genres'] = data['genres'].apply(literal_eval).apply(get_genres) return data def get_mean(data): count = data['vote_count'].sum() rating = data['vote_average']*data['vote_count'] ...
27.054054
109
0.599401
d61a757d95aa261555438b948541813e0fbf9d08
5,895
py
Python
users/tests/test_user_photo.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
users/tests/test_user_photo.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
users/tests/test_user_photo.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
# stdlib from datetime import datetime from shutil import rmtree from tempfile import NamedTemporaryFile # django from django.conf import settings from django.contrib.auth.models import User from django.core.files.images import ImageFile from django.test import TestCase from django.urls import reverse # library from ...
36.614907
80
0.637829
9caa60ba252bba6307e04fae6356d99f55d82ff4
3,266
py
Python
quark_core_api/data/storage/query_operators.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
quark_core_api/data/storage/query_operators.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
quark_core_api/data/storage/query_operators.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
from fnmatch import fnmatch from functools import wraps from future.builtins import super from future.utils import viewitems class QueryOperators(object): _operators = { "logical" : {}, "comparison" : {}, "evaluation" : {} } @staticmethod def add(operator): @wra...
23.496403
69
0.665034
21031a5c9ed892c8762743ef295fd0b3c45bbcb3
1,842
py
Python
Utils/py/ActionSelection/potentialfield_generation/dumb_potential_field.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/ActionSelection/potentialfield_generation/dumb_potential_field.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/ActionSelection/potentialfield_generation/dumb_potential_field.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from __future__ import division from matplotlib import pyplot as plt from tools import field_info as field from matplotlib.mlab import griddata import matplotlib.patches as patches import numpy as np from tools import tools import naoth.math2d as m2d import scipy.io import pickle import os # create a structure for the...
27.909091
87
0.663952
2eb8fcce1fce5ae07642252200523a592e37123b
1,496
py
Python
site/public/courses/BEW-1.1/Lessons/03-Intro-to-Flask/demo/app.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
1
2021-08-24T20:22:19.000Z
2021-08-24T20:22:19.000Z
site/public/courses/BEW-1.1/Lessons/03-Intro-to-Flask/demo/app.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
site/public/courses/BEW-1.1/Lessons/03-Intro-to-Flask/demo/app.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
from flask import Flask, request app = Flask(__name__) @app.route('/hello') def say_hello(): return "Hello, World!" @app.route('/user/<username>') def say_hello_var(username): return 'Hi, ' + username @app.route('/double/<int:the_number>') def double(the_number): return str(the_number * 2)...
26.245614
71
0.589572
9fb37e0e4edcf0a73c5f732b21dd5285ed3f93d7
4,961
py
Python
monitoring/zabbix/zabbix_collections/zabbix-hadoop-template/hbase-master-template/zabbix-HMaster.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
63
2018-02-04T03:31:22.000Z
2022-03-07T08:27:39.000Z
monitoring/zabbix/zabbix_collections/zabbix-hadoop-template/hbase-master-template/zabbix-HMaster.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
3
2020-06-15T03:41:03.000Z
2020-06-15T03:41:04.000Z
monitoring/zabbix/zabbix_collections/zabbix-hadoop-template/hbase-master-template/zabbix-HMaster.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
40
2018-01-22T16:31:16.000Z
2022-03-08T04:40:42.000Z
__author__ = 'ssj' import json import urllib import logging import sys import time # --------------------------------- # Generate URL # --------------------------------- # This function converts the servername to URL which we need to query. def get_url(server_name, listen_port, topic_name): """ Generati...
34.692308
94
0.632937
4cd8aba754f44807dd76127c4c5b108a5b64c422
3,027
py
Python
python/src/Util.py
StephanKoo/LED-AlarmClock
6936c201aa08037b130eafed7a5a71b73f8e1ac0
[ "Apache-2.0" ]
null
null
null
python/src/Util.py
StephanKoo/LED-AlarmClock
6936c201aa08037b130eafed7a5a71b73f8e1ac0
[ "Apache-2.0" ]
null
null
null
python/src/Util.py
StephanKoo/LED-AlarmClock
6936c201aa08037b130eafed7a5a71b73f8e1ac0
[ "Apache-2.0" ]
1
2021-08-13T20:38:50.000Z
2021-08-13T20:38:50.000Z
import requests import json from requests.structures import CaseInsensitiveDict import time from datetime import datetime import socket def getIpInfo(): s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) try: # doesn't even have to be reachable s.connect(('192.168.0.1', 1)) ipAddress...
29.38835
108
0.585728
9810edc112f2a0b8aac92e2194886797187fa150
231
py
Python
python/gdal_cookbook/cookbook_geometry/buffer_in_geometry.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/gdal_cookbook/cookbook_geometry/buffer_in_geometry.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/gdal_cookbook/cookbook_geometry/buffer_in_geometry.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from osgeo import ogr wkt = "POINT (1198054.34 648493.09)" pt = ogr.CreateGeometryFromWkt(wkt) bufferDistance = 500 poly = pt.Buffer(bufferDistance) print(f'{pt.ExportToWkt()} buffered by {bufferDistance} is {poly.ExportToWkt()}')
33
81
0.757576
e25ce2fd5b1532a0703c6eacea71f1c761c1cfa6
8,491
py
Python
etl/data_extraction/scrapers/bundesfreiwilligendienst.py
Betadinho/einander-helfen
272f11397d80ab5267f39a7b36734495f1c00b0c
[ "MIT" ]
7
2020-04-23T20:16:11.000Z
2022-01-04T14:57:16.000Z
etl/data_extraction/scrapers/bundesfreiwilligendienst.py
Betadinho/einander-helfen
272f11397d80ab5267f39a7b36734495f1c00b0c
[ "MIT" ]
361
2020-04-23T17:20:14.000Z
2022-03-02T11:29:45.000Z
etl/data_extraction/scrapers/bundesfreiwilligendienst.py
Betadinho/einander-helfen
272f11397d80ab5267f39a7b36734495f1c00b0c
[ "MIT" ]
1
2021-11-29T06:02:52.000Z
2021-11-29T06:02:52.000Z
from data_extraction.scraper import Scraper class BundesFreiwilligendienst(Scraper): """Scrapes the website bundesfreiwilligendienst.de.""" base_url = 'https://www.bundesfreiwilligendienst.de' def parse(self, response, url): """Handles the soupified response of a detail page in the predefined wa...
45.650538
120
0.566718
2c5621d07ec690bf50512caf97cce7870dfccea5
1,798
py
Python
python/stats/doi_license_stats.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/stats/doi_license_stats.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/stats/doi_license_stats.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
""" Get statistics on used license names from published G-Node datasets. Requires a local copy of the DOImetadata repository. """ import argparse import json import os import re from typing import Dict def license_names_from_files(dir_path: str) -> Dict: """ Parse license names from all xml files found at th...
32.690909
93
0.661846
391ab099b962444880edc940d25e22e238445d3e
1,116
py
Python
Raabe/ex1.py
appfs/appfs
8cbbfa0e40e4d4a75a498ce8dd894bb2fbc3a9e3
[ "MIT" ]
11
2017-04-21T11:39:55.000Z
2022-02-11T20:25:18.000Z
Raabe/ex1.py
appfs/appfs
8cbbfa0e40e4d4a75a498ce8dd894bb2fbc3a9e3
[ "MIT" ]
69
2017-04-26T09:30:38.000Z
2017-08-01T11:31:21.000Z
Raabe/ex1.py
appfs/appfs
8cbbfa0e40e4d4a75a498ce8dd894bb2fbc3a9e3
[ "MIT" ]
53
2017-04-20T16:16:11.000Z
2017-07-19T12:53:01.000Z
# -*- coding: utf-8 -*- """ Created on Mon May 01 23:02:52 2017 @author: dom """ from sys import argv def isvalid(line): # Checks if a read line can be used if line[0] == '#': return False elem = line.split(';') if not len(elem) == 3: return False if not float(elem[2]) > 0: ...
21.056604
83
0.52957
1ab9c571f0fdeb911bef61a83b7f8d15e12ff1bc
756
py
Python
examples/myqueryset/prefetch_related_/migrations/0002_restaurant.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
5
2020-07-14T07:48:10.000Z
2021-12-20T21:20:10.000Z
examples/myqueryset/prefetch_related_/migrations/0002_restaurant.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
7
2021-03-26T03:13:38.000Z
2022-03-12T00:42:03.000Z
examples/myqueryset/prefetch_related_/migrations/0002_restaurant.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
1
2021-02-16T07:04:25.000Z
2021-02-16T07:04:25.000Z
# Generated by Django 3.1.7 on 2021-04-03 22:24 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('prefetch_related_', '0001_initial'), ] operations = [ migrations.CreateModel( name='Restaurant'...
32.869565
155
0.640212
46edb199741f39876bec00d76e9c2779b565e831
1,796
py
Python
util/basic/data-struct/allheap.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
util/basic/data-struct/allheap.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
util/basic/data-struct/allheap.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Heap(object): def __init__(self, arr=[], isMin=True): self.hp = arr self.heapify() self.isMin = isMin # Location def parent(self, i): return (i - 1) / 2 def left(self, i): return 2 * i + 1 def right(self, i): return 2 * i + 2 # Basic ...
19.736264
54
0.432628
64c0053584677aa80a859b76fb3784d3eeb22ce5
2,078
py
Python
tests/test_zeitreihenwertkompakt.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_zeitreihenwertkompakt.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_zeitreihenwertkompakt.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
from decimal import Decimal import pytest # type:ignore[import] from bo4e.com.zeitreihenwertkompakt import Zeitreihenwertkompakt, ZeitreihenwertkompaktSchema from bo4e.enum.messwertstatus import Messwertstatus from bo4e.enum.messwertstatuszusatz import Messwertstatuszusatz class TestZeitreihenwertkompakt: def ...
35.220339
116
0.72666
806a2afbc8ec0d08acbe563bfeec376468d49d23
857
py
Python
AccessPoint03/AccessPoint/migrations/0001_initial.py
test1lax1/Toy
52ea70ee92959bd59a0afc8baa30b3a455e394d3
[ "MIT" ]
null
null
null
AccessPoint03/AccessPoint/migrations/0001_initial.py
test1lax1/Toy
52ea70ee92959bd59a0afc8baa30b3a455e394d3
[ "MIT" ]
5
2021-03-30T13:53:38.000Z
2021-09-22T19:18:06.000Z
AccessPoint03/AccessPoint/migrations/0001_initial.py
test1lax1/Toy
52ea70ee92959bd59a0afc8baa30b3a455e394d3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.17 on 2020-06-15 09:36 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( ...
30.607143
115
0.563594
a652de541490730a2cf461291a14f32090cd2295
2,517
py
Python
src/model.py
HaasStefan/Pixorize_2020
31dbc537a68195003f50ae989e3c4677c9c96ac4
[ "MIT" ]
2
2020-03-25T15:48:48.000Z
2022-02-02T18:36:24.000Z
src/model.py
HaasStefan/Pixorize_2020
31dbc537a68195003f50ae989e3c4677c9c96ac4
[ "MIT" ]
null
null
null
src/model.py
HaasStefan/Pixorize_2020
31dbc537a68195003f50ae989e3c4677c9c96ac4
[ "MIT" ]
null
null
null
import torch.nn as nn import torch class AE(nn.Module): def __init__(self): super(AE, self).__init__() self.leaky_reLU = nn.LeakyReLU(0.2) self.pool = nn.MaxPool2d(kernel_size=2, stride=2, padding=1, return_indices=True) self.unpool = nn.MaxUnpool2d(kernel_size=2, stride=2, padding...
39.328125
111
0.63528
a6c267e6fd360309e0dc979c879346d830a6b349
405
py
Python
oldp/apps/laws/serializers.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
3
2020-06-27T08:19:35.000Z
2020-12-27T17:46:02.000Z
oldp/apps/laws/serializers.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
oldp/apps/laws/serializers.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
from rest_framework import serializers from oldp.apps.laws.models import Law, LawBook class LawSerializer(serializers.ModelSerializer): class Meta: model = Law fields = ('book', 'title', 'text', 'slug') # depth = 2 class LawBookSerializer(serializers.ModelSerializer): class Meta: ...
22.5
61
0.65679
5bfdad2de6fbcea64f154edacc116b28c9dd4043
413
py
Python
python/coursera_python/WESLEYAN/week2/2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/WESLEYAN/week2/2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/WESLEYAN/week2/2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
alist = ["a","e","i","o","u","y"] blist = ["alpha", "beta", "gamma", "delta", "epsilon", "eta", "theta"] def problem2_2(my_list): print(my_list) print(my_list[0]) l = len(my_list) print(my_list[l-1]) print(my_list[3:5]) print(my_list[:3]) print(my_list[3:]) print(l) my_list.append(...
25.8125
71
0.585956
f32b6a5e9d9b8c5bd63d69df0d690167a2169cc0
1,634
py
Python
research/nlp/atae_lstm/src/atae_for_train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/atae_lstm/src/atae_for_train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/atae_lstm/src/atae_for_train.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...
32.039216
78
0.642595
cad6da644986ac0151221a2d88e28a6a622f3943
285
py
Python
ppyt/filters/basic_filters.py
yusukemurayama/ppytrading
9804d0de870d77bf8a1c847736a636b1342d4600
[ "MIT" ]
4
2016-08-16T07:47:15.000Z
2017-12-11T10:08:47.000Z
ppyt/filters/basic_filters.py
yusukemurayama/ppytrading
9804d0de870d77bf8a1c847736a636b1342d4600
[ "MIT" ]
null
null
null
ppyt/filters/basic_filters.py
yusukemurayama/ppytrading
9804d0de870d77bf8a1c847736a636b1342d4600
[ "MIT" ]
2
2018-06-15T04:43:15.000Z
2020-05-02T07:47:15.000Z
# coding: utf-8 import logging from ppyt.filters import FilterBase logger = logging.getLogger(__name__) class AllPassFilter(FilterBase): """全ての銘柄を対象にするフィルタ""" _findkey = '全て通過' def _setup(self): pass def _filter_stocks(self, stocks): return stocks
16.764706
37
0.684211
8489099b5ddc8533e9411a1400927133902ff657
2,080
py
Python
instructions_rrfa.01.container-list-and-contents.py
Super10veBug/rrfa-pfch-2019
e675790d2a53718afa53fd0a27a529877b598ffa
[ "MIT" ]
null
null
null
instructions_rrfa.01.container-list-and-contents.py
Super10veBug/rrfa-pfch-2019
e675790d2a53718afa53fd0a27a529877b598ffa
[ "MIT" ]
null
null
null
instructions_rrfa.01.container-list-and-contents.py
Super10veBug/rrfa-pfch-2019
e675790d2a53718afa53fd0a27a529877b598ffa
[ "MIT" ]
null
null
null
# import the ElementTree, Regex, and CSV modules. I imported pprint to more easily view the result_list in Terminal import xml.etree.ElementTree as etree import re import csv import pprint # parse through the xml document -- # the file name for the xml document you want to parse goes inside of the parentheses Elemen...
37.142857
115
0.701442
ca161f82ba12056adc98ee504af5063e7182bbdd
2,202
py
Python
baccoapp/mysandwich/views.py
msienkiewicz7/baccoapp
d647ca205fdf06fe57fda7b6db164ae7d3387dad
[ "MIT" ]
null
null
null
baccoapp/mysandwich/views.py
msienkiewicz7/baccoapp
d647ca205fdf06fe57fda7b6db164ae7d3387dad
[ "MIT" ]
null
null
null
baccoapp/mysandwich/views.py
msienkiewicz7/baccoapp
d647ca205fdf06fe57fda7b6db164ae7d3387dad
[ "MIT" ]
null
null
null
# from django.shortcuts import render # Create your views here. # from django.http import HttpResponse # # def index(request): # return HttpResponse("Hello, world. You're at the polls index.") from django.shortcuts import render from django.views.generic import ListView, DetailView from django.db.models import ...
28.597403
93
0.702997
6d082bd2005bdf722a3f1ffe1ab08fd70b8835f5
3,066
py
Python
frappe-bench/apps/erpnext/erpnext/maintenance/doctype/maintenance_visit/maintenance_visit.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/maintenance/doctype/maintenance_visit/maintenance_visit.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/maintenance/doctype/maintenance_visit/maintenance_visit.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe import _ from erpnext.utilities.transaction_base import TransactionBase class MaintenanceVisit(TransactionBase): def get_fe...
38.325
356
0.709393
edfdca153e5179033e3edad57fbb036e8a0a7fc0
241
py
Python
python_lessons/Textastic_Files/Python SQLite Tutorial - MtMk/database.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/Textastic_Files/Python SQLite Tutorial - MtMk/database.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/Textastic_Files/Python SQLite Tutorial - MtMk/database.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
import sqlite3 CREATE_TABLE_TRADE = ("""CREATE TABLE IF NOT EXISTS trade ( );""") def connect(): return sqlite3.connect("trade.db") def create_tables(connection): with connection: connection.execute(CREATE_TABLE_TRADE)
17.214286
59
0.705394
611491e723c5f843c461b098176f16930acd6ee7
843
py
Python
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/73Groupby/groupby.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/73Groupby/groupby.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/73Groupby/groupby.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
from itertools import groupby, tee alunos = [ {'nome': 'Luiz', 'nota': 'A'}, {'nome': 'Leticia', 'nota': 'B'}, {'nome': 'Fabricio', 'nota': 'C'}, {'nome': 'Rosemary', 'nota': 'D'}, {'nome': 'Joana', 'nota': 'A'}, {'nome': 'João', 'nota': 'B'}, {'nome': 'Eduardo', 'nota': 'A'}, {'nome': ...
31.222222
65
0.570581
1e7d24f66da7bee26ca4e0c98ac477586fc8a19c
1,125
py
Python
chapter100/mongodb_03.py
thiagola92/learning-databases-with-python
cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e
[ "MIT" ]
null
null
null
chapter100/mongodb_03.py
thiagola92/learning-databases-with-python
cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e
[ "MIT" ]
null
null
null
chapter100/mongodb_03.py
thiagola92/learning-databases-with-python
cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e
[ "MIT" ]
null
null
null
import asyncio from datetime import datetime from motor.motor_asyncio import AsyncIOMotorClient start = datetime.now() async def main(): client = AsyncIOMotorClient("mongodb://username:password@127.0.0.1") database = client["database_name"] collection = database["collection_name"] package = [] ...
26.785714
72
0.615111
94944f2f454d0229234ad1be6a9cc0b92463105e
4,645
py
Python
api/clean/sequence_speci.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
null
null
null
api/clean/sequence_speci.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
null
null
null
api/clean/sequence_speci.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
1
2022-02-11T04:44:37.000Z
2022-02-11T04:44:37.000Z
# !/usr/bin/python3 # -*- coding: utf-8 -*- # @Time : 2021/7/21 下午2:47 # @Author : Latent # @Email : latentsky@gmail.com # @File : sequence_speci.py # @Software: PyCharm # @class : 规格清洗 """ 1. delivery_address ----> 生产地址 2. delivery_company ----->生产企业 3. company_phone ----> 企业电话 4. pack ---> 包装方式 5. solid_conten...
25.244565
87
0.4338
78bf29089bb9416fd59494f86af9a4f61e350fee
3,496
py
Python
Scripts/detectCallsCall.py
HuttonICS/API
22d61759a77f2ab3c4e610bb251684c78f71d2e6
[ "MIT" ]
40
2016-09-13T12:54:11.000Z
2021-09-05T18:45:38.000Z
Scripts/detectCallsCall.py
HuttonICS/API
22d61759a77f2ab3c4e610bb251684c78f71d2e6
[ "MIT" ]
351
2016-08-10T17:58:38.000Z
2021-09-15T12:19:48.000Z
Scripts/detectCallsCall.py
HuttonICS/API
22d61759a77f2ab3c4e610bb251684c78f71d2e6
[ "MIT" ]
32
2016-09-09T16:04:01.000Z
2021-01-21T13:27:40.000Z
#! /usr/bin/env python import yaml import sys import requests import re import json from json import JSONEncoder from pip._vendor.distlib.compat import raw_input import dereferenceAll import testInputs import brapiVersions ##---------------------------------------------------------------------- class callObj: def...
26.285714
248
0.592391
15b9fc58aa0f94d104c7155b90d60f6eba7b9da3
5,881
py
Python
torch/utils/data/communication/map.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
183
2018-04-06T21:10:36.000Z
2022-03-30T15:05:24.000Z
torch/utils/data/communication/map.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
631
2018-06-05T16:59:11.000Z
2022-03-31T16:26:57.000Z
torch/utils/data/communication/map.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
58
2018-06-05T16:40:18.000Z
2022-03-16T15:37:29.000Z
import time import types from torch.utils.data import communication, MapDataPipe DEFAULT_NON_BLOCKING_SLEEP = 0.001 def default_not_available_hook(): time.sleep(DEFAULT_NON_BLOCKING_SLEEP) class NotAvailable(Exception): pass class NonBlockingMap(MapDataPipe): not_available_hook = default_not_availab...
38.94702
106
0.666723
bf1a2dde04ffc79c658e007db224849c27d6e7e9
3,666
py
Python
python/oneflow/compatible/single_client/config/__init__.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/compatible/single_client/config/__init__.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/compatible/single_client/config/__init__.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
40.733333
85
0.839334
bf1fcb5abf24527fe8a5859765d297b552410e4a
421
py
Python
logger/crawler_logger.py
mcmin001/NBCrawler
ec6a348e32889fb9252651b203a725a39b6836ec
[ "Apache-2.0" ]
null
null
null
logger/crawler_logger.py
mcmin001/NBCrawler
ec6a348e32889fb9252651b203a725a39b6836ec
[ "Apache-2.0" ]
null
null
null
logger/crawler_logger.py
mcmin001/NBCrawler
ec6a348e32889fb9252651b203a725a39b6836ec
[ "Apache-2.0" ]
null
null
null
import logging import logging.config import os def get_logger(name='root'): curPath = os.path.abspath(os.path.dirname(__file__)) rootPath = curPath[:curPath.find("NBCrawler\\") + len("NBCrawler\\")] # 获取myProject,也就是项目的根路径 conf_log = os.path.abspath(rootPath + "/resource/logger_config.ini") logging.c...
30.071429
98
0.738717
e58ae611702e01820221585f4f5cd04fcc709812
3,478
py
Python
Topic3-TradingBot/BLSHbot.py
SimonScapan/AusarbeitungenAI
ef97bd76ae724e2ec76132bc5f4b81d0b751d882
[ "MIT" ]
null
null
null
Topic3-TradingBot/BLSHbot.py
SimonScapan/AusarbeitungenAI
ef97bd76ae724e2ec76132bc5f4b81d0b751d882
[ "MIT" ]
null
null
null
Topic3-TradingBot/BLSHbot.py
SimonScapan/AusarbeitungenAI
ef97bd76ae724e2ec76132bc5f4b81d0b751d882
[ "MIT" ]
null
null
null
''' Buy Low Sell High or momentum strategy bot for educational purposes. The project is based on: https://www.datacamp.com/community/tutorials/finance-python-trading The aim is to find a model for trading with a "buy low sell high" heuristic to compare later on with a high level intelligence More Detailed Information...
53.507692
193
0.535078
974c4015d3d0c85a8eebeb0de8ea29b883aca1d3
1,869
py
Python
Prototype/main prototype/LayerData.py
fowado/BauphysikSE1
eb8805196c8fbf99a879c40c5e0725d740c5a0de
[ "CC-BY-4.0" ]
4
2019-12-03T16:13:09.000Z
2019-12-11T23:22:58.000Z
Prototype/main prototype/LayerData.py
fowado/BauphysikSE1
eb8805196c8fbf99a879c40c5e0725d740c5a0de
[ "CC-BY-4.0" ]
65
2019-12-08T17:43:59.000Z
2020-08-14T15:26:21.000Z
Prototype/main prototype/LayerData.py
fowado/BauphysikSE1
eb8805196c8fbf99a879c40c5e0725d740c5a0de
[ "CC-BY-4.0" ]
null
null
null
# This Python file uses the following encoding: utf-8 import Calculation class LayerData: def __init__(self, name=None, mat=None, r=None, lambda_=None, width=None, widthUnit=None): #some trickery because default values in the constructor call kind of destroy the the possibility to have multiple instances ...
51.916667
292
0.659176
9783c237680d9757045cd4541f67294952dbac23
305
py
Python
main.py
danielvh8/RP-granzyme-B
fcb29321f8ad55bfaa56e31f45eeab907e1ed1af
[ "MIT" ]
null
null
null
main.py
danielvh8/RP-granzyme-B
fcb29321f8ad55bfaa56e31f45eeab907e1ed1af
[ "MIT" ]
null
null
null
main.py
danielvh8/RP-granzyme-B
fcb29321f8ad55bfaa56e31f45eeab907e1ed1af
[ "MIT" ]
null
null
null
from pipeline import PipeLine from pathlib import Path if __name__ == "__main__": GrB = PipeLine.GenerateTarget([Path('In/neo-N-terminal.csv'), Path('In/neo-C-terminal.csv')], "Granzyme B") ICs = PipeLine.Run(Path("In/IC selection NO ISO.fasta.gz"), Path('Out/IC Selection HS NO ISO.csv'), GrB)
38.125
111
0.704918
e773c02f065b96d81e91d6ab049cf0f0382f2732
368
py
Python
Problems/Stack/Easy/NextGreaterElement1/next_greater_element_1.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Stack/Easy/NextGreaterElement1/next_greater_element_1.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Stack/Easy/NextGreaterElement1/next_greater_element_1.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from typing import List def nextGreaterElement(nums1: List[int], nums2: List[int]) -> List[int]: stack, res = [], [] d = {} for i in range(len(nums2)): d[nums2[i]] = -1 while stack and stack[-1] < nums2[i]: d[stack.pop()] = nums2[i] stack.append(nums2[i]) for i in...
21.647059
72
0.532609
99c0fd4c1c3cd7b2628ce37f526b23ea8f35ae91
1,312
py
Python
filterbank.py
gumaga/-audiotechnik_gruppe_3_finale_abgabe-
b31b5d7db064b09a2f6f97e08b54eff0cd12d091
[ "Unlicense" ]
1
2021-03-12T20:02:23.000Z
2021-03-12T20:02:23.000Z
filterbank.py
gumaga/-audiotechnik_gruppe_3_finale_abgabe-
b31b5d7db064b09a2f6f97e08b54eff0cd12d091
[ "Unlicense" ]
null
null
null
filterbank.py
gumaga/-audiotechnik_gruppe_3_finale_abgabe-
b31b5d7db064b09a2f6f97e08b54eff0cd12d091
[ "Unlicense" ]
null
null
null
""" class for designing a 3-band filterbank Authors: Leon Hochberger, Daniel-José Alcala Padilla, Tobias Danneleit Date: March 10th, 2021 License: 3-clause BSD (see README in https://github.com/gumaga/-audiotechnik_gruppe_3_finale_abgabe-) """ import scipy.signal as signal import numpy as np class filterbank(): ...
50.461538
104
0.720274
d43c0080d1b2fde8ce165a5718c8a7692f0d239e
3,473
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/sumolib/shapes/poi.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
sumolib/shapes/poi.py
KhalidHALBA-GR-NIST/UCEFSUMOV2V
4eb7ac761303a171718a10e4131184746bded9fd
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
sumolib/shapes/poi.py
KhalidHALBA-GR-NIST/UCEFSUMOV2V
4eb7ac761303a171718a10e4131184746bded9fd
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2010-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.eclipse.org/legal/epl-2....
36.177083
90
0.560035
2e23424db9c8a4c713b15ad644268c30ddf9311c
1,740
py
Python
RDS/circle2_use_cases/port/src/api/Exchange.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/api/Exchange.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/api/Exchange.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
from flask import request, redirect, abort import Util import json import jwt import logging import base64 logger = logging.getLogger() def post(): """ This endpoint implements the same like redirect, but it returns 204 for success and 400 if something goes wrong. This enables, that integrations can trig...
31.071429
116
0.623563
2b7a4d32f83ac819320e62e5cb8ec1970eaca633
562
py
Python
tests/generic.py
MZH-bust/genutil
f17190ec484d5844f8950908cc07556a5b1429e7
[ "MIT" ]
null
null
null
tests/generic.py
MZH-bust/genutil
f17190ec484d5844f8950908cc07556a5b1429e7
[ "MIT" ]
null
null
null
tests/generic.py
MZH-bust/genutil
f17190ec484d5844f8950908cc07556a5b1429e7
[ "MIT" ]
null
null
null
import pytest def generic_function(test_function, test_parameter, test_cases, expected): for test_type, value in test_cases.items(): if test_type == "type": assert isinstance(test_function(*test_parameter), value) == expected elif test_type == "result": assert (test_functio...
37.466667
80
0.644128
cfa7d334f1f67a916883e708e85aeef624511a4c
6,691
py
Python
PSA/modules/MHR.py
SECURED-FP7/secured-psa-nsm
20c8f790ebc2d2aa8c33bda1e047f8f29275a0be
[ "Apache-2.0" ]
null
null
null
PSA/modules/MHR.py
SECURED-FP7/secured-psa-nsm
20c8f790ebc2d2aa8c33bda1e047f8f29275a0be
[ "Apache-2.0" ]
null
null
null
PSA/modules/MHR.py
SECURED-FP7/secured-psa-nsm
20c8f790ebc2d2aa8c33bda1e047f8f29275a0be
[ "Apache-2.0" ]
null
null
null
# -*- Mode:Python;indent-tabs-mode:nil; -*- # # MHR.py # # Implements a malware detection module that communicates with MHR.bro # # Author: jju, jk / VTT Technical Research Centre of Finland Ltd., 2016 # import logging from broccoli import event, record_type, record from modules.BroModule import BroModule import modu...
34.312821
92
0.471379
cfe798539d15bd267768b10cf7c6d83a37d1409b
2,117
py
Python
tests/views/test_user.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
tests/views/test_user.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
tests/views/test_user.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
import pytest def test_profile(client, seeder, utils): user_id, admin_unit_id = seeder.setup_base() seeder.create_event(admin_unit_id) url = utils.get_url("profile", id=1) utils.get_ok(url) def test_organization_invitation_not_registered(client, app, utils, seeder): _, admin_unit_id = seeder.se...
34.704918
79
0.758621