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
ba345ede9b6aaac9caf3a5a6e2ed1f8c5dc48c88
93
py
Python
src/onegov/wtfs/models/principal.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/models/principal.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/models/principal.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
class Principal(object): """ The principal is the entity running the app. """ pass
15.5
56
0.645161
baa393061c60b77492f40c9200cc7f4388158f90
6,949
py
Python
Packs/Sixgill-Darkfeed/Integrations/Sixgill_Darkfeed_Enrichment/Sixgill_Darkfeed_Enrichment_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Sixgill-Darkfeed/Integrations/Sixgill_Darkfeed_Enrichment/Sixgill_Darkfeed_Enrichment_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Sixgill-Darkfeed/Integrations/Sixgill_Darkfeed_Enrichment/Sixgill_Darkfeed_Enrichment_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import requests import pytest import json import io import demistomock as demisto mock_response = "" mocked_get_token_response = """{"access_token": "fababfafbh"}""" def util_load_json(path): with io.open(path, mode='r', encoding='utf-8') as f: return f.read() class MockedResponse(object): def __i...
29.320675
99
0.70485
79e0ffab4cdc37574682e213f7dbef09209ed0c0
6,521
py
Python
python/en/_pandas/Pandas for Everyone/p4e-2_3_the_series.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_pandas/Pandas for Everyone/p4e-2_3_the_series.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_pandas/Pandas for Everyone/p4e-2_3_the_series.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ pandas_for_everyone-2_3_the_series.py 2.3.The Series """ import pandas as pd ################## # 2.3.The Series # ################## # Create our example dataframe with a row index label scientists = pd.DataFrame( data = {'Occupation': ['Chemist','Statistic...
21.241042
86
0.526453
0349bec7a5c5c6c7437ba761b1ad3f5699d6bedb
7,444
py
Python
bp-revok/python/lib/python2.7/site-packages/netlib/certutils.py
fkolacek/FIT-VUT
bb6f7f6eb1fea1f13952e0ab463e5aa69a84084c
[ "Apache-2.0" ]
null
null
null
bp-revok/python/lib/python2.7/site-packages/netlib/certutils.py
fkolacek/FIT-VUT
bb6f7f6eb1fea1f13952e0ab463e5aa69a84084c
[ "Apache-2.0" ]
null
null
null
bp-revok/python/lib/python2.7/site-packages/netlib/certutils.py
fkolacek/FIT-VUT
bb6f7f6eb1fea1f13952e0ab463e5aa69a84084c
[ "Apache-2.0" ]
3
2017-04-07T12:02:22.000Z
2020-03-23T12:11:55.000Z
import os, ssl, time, datetime from pyasn1.type import univ, constraint, char, namedtype, tag from pyasn1.codec.der.decoder import decode from pyasn1.error import PyAsn1Error import OpenSSL import tcp default_exp = 62208000 # =24 * 60 * 60 * 720 default_o = "mitmproxy" default_cn = "mitmproxy" def create_ca(o=default...
30.508197
136
0.616604
06a3ef592ac8c629dbb7e1c98572b9d11cda2cae
2,359
py
Python
src/visitpy/pyui/pyqt/gui/configure.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/visitpy/pyui/pyqt/gui/configure.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/visitpy/pyui/pyqt/gui/configure.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
import os import sipconfig from PyQt4 import pyqtconfig # The name of the SIP build file generated by SIP and used by the build # system. build_file = "pyqtgui.sbf" # Get the PyQt configuration information. config = pyqtconfig.Configuration() # Get the extra SIP flags needed by the imported PyQt modules. Note that ...
36.859375
124
0.753709
cc9476682745a10d6b8a6a7f09622dd5a87cbfea
32,689
py
Python
Library/OptionStrategyOrder.py
rccannizzaro/QC-StrategyBacktest
847dbd61680466bc60ce7893eced8a8f70d16b2e
[ "Apache-2.0" ]
11
2021-12-02T15:41:47.000Z
2022-03-14T03:49:22.000Z
Library/OptionStrategyOrder.py
ikamanu/QC-StrategyBacktest
847dbd61680466bc60ce7893eced8a8f70d16b2e
[ "Apache-2.0" ]
null
null
null
Library/OptionStrategyOrder.py
ikamanu/QC-StrategyBacktest
847dbd61680466bc60ce7893eced8a8f70d16b2e
[ "Apache-2.0" ]
5
2022-02-02T12:07:51.000Z
2022-02-13T02:24:19.000Z
######################################################################################## # # # Licensed under the Apache License, Version 2.0 (the "License"); # # you may not use this file except in compliance with...
43.643525
201
0.619872
cca9c6c853e34487ca942d49504d9a227c55272e
1,077
py
Python
2020-09-03-1600-gma_becherhalter_main.py
gmaubach/OOP-with-Python
9b059e911d55d616e756324564f1f2cc524aa53d
[ "MIT" ]
null
null
null
2020-09-03-1600-gma_becherhalter_main.py
gmaubach/OOP-with-Python
9b059e911d55d616e756324564f1f2cc524aa53d
[ "MIT" ]
null
null
null
2020-09-03-1600-gma_becherhalter_main.py
gmaubach/OOP-with-Python
9b059e911d55d616e756324564f1f2cc524aa53d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os os.chdir("D:\Selfcoding\WillmsBis040920\scara64anaconda\Klassen") from becher import * from becherhalter import * print("-- Test - Objekt --") b1 = Becher(500, 300) b2 = Becher(400) halter1 = Becherhalter(b1, b2) halter2 = Becherhalter(b1) print("-- Test - getter --")...
20.320755
66
0.660167
ccc2822b90436e7ed622e57616aa952560910ea1
526
py
Python
Algorithms/Search/missing_numbers.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Search/missing_numbers.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Search/missing_numbers.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys from collections import Counter def main(): n = input().strip() N_arr = [int(x_temp) for x_temp in input().strip().split(' ')] m = input().strip() M_arr = [int(x_temp) for x_temp in input().strip().split(' ')] Nc = Counter() for a in N_arr: Nc[a] += ...
19.481481
66
0.545627
9d9cccfb99ff887989bd417f101c9e68a411553d
1,107
py
Python
tensorscript_RNN_ideology_recognition.py
Pijanes/Party_Mobilisation_Twitter
59181b442fa16c7e96cbabfcd28798b473aad2c6
[ "MIT" ]
null
null
null
tensorscript_RNN_ideology_recognition.py
Pijanes/Party_Mobilisation_Twitter
59181b442fa16c7e96cbabfcd28798b473aad2c6
[ "MIT" ]
null
null
null
tensorscript_RNN_ideology_recognition.py
Pijanes/Party_Mobilisation_Twitter
59181b442fa16c7e96cbabfcd28798b473aad2c6
[ "MIT" ]
1
2021-07-18T08:32:12.000Z
2021-07-18T08:32:12.000Z
import h5py import pandas as pd import numpy as np from tensorflow.keras.preprocessing.text import Tokenizer from tensorflow.keras.preprocessing.sequence import pad_sequences from tensorflow.keras.models import model_from_json # The maximum number of words to be used. (most frequent) max_top_words = 50000 # Max number...
34.59375
101
0.770551
d19b7c7b4c029a58b744f25ee60f66797880734b
936
py
Python
Packs/CommonScripts/Scripts/PopulateCriticalAssets/PopulateCriticalAssets.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/PopulateCriticalAssets/PopulateCriticalAssets.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/PopulateCriticalAssets/PopulateCriticalAssets.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 * from CommonServerUserPython import * field_cli_name = "criticalassets" current_value = (demisto.incidents()[0].get("CustomFields", {}).get(field_cli_name) or demisto.incidents()[0].get(field_cli_name)) critical_assets = demisto.args().get(...
39
113
0.719017
886b3f01e317bab042bc3440c0cd203171460888
607
py
Python
Programming Languages/Python/Theory/100_Python_Challenges/Section_9_Exceptions/98. try-except clause.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_9_Exceptions/98. try-except clause.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_9_Exceptions/98. try-except clause.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
""" Write a function that accepts 2 parameters 'a' and 'b' . Your function should execute the equation 'a/b' and if this equation raises any exception, the exception should be returned else return the quotient. Template: def validate(a,b): try: a/b except ValueError: return (ValueError) ...
18.393939
149
0.594728
eef5c700ddb6301b5b6361affe7f0b261293b32f
622
py
Python
pacman-arch/test/pacman/tests/upgrade029.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/upgrade029.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/upgrade029.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Upgrade a package, with an owned file entering the pkg in 'backup'" lp = pmpkg("dummy") lp.files = ["usr/bin/dummy"] self.addpkg2db("local", lp) lp2 = pmpkg("dummy2") lp2.files = ["etc/dummy.conf"] self.addpkg2db("local", lp2) p = pmpkg("dummy", "1.0-2") p.files = ["usr/bin/dummy", "et...
25.916667
87
0.678457
eef5f8983cd41a5903857ef8aa52d32527d6cb5d
1,890
py
Python
pinout.py
lurch/Pinout2
bd3b39de2c053607b9415dd9eb0297a401ba7162
[ "CC-BY-4.0" ]
null
null
null
pinout.py
lurch/Pinout2
bd3b39de2c053607b9415dd9eb0297a401ba7162
[ "CC-BY-4.0" ]
null
null
null
pinout.py
lurch/Pinout2
bd3b39de2c053607b9415dd9eb0297a401ba7162
[ "CC-BY-4.0" ]
null
null
null
import json import yaml import time DB_FILE = 'pi-pinout.yaml' SETTINGS_FILE = 'settings.yaml' pins = None settings = None def get_setting(setting, default = None): if setting in settings and settings[setting] != None: return settings[setting] return default def render_html(*args, **kwargs): htm...
27.391304
81
0.574603
e12a45927a2521df58f300a8327bae779f44292d
406
py
Python
python/is_binary_tree.py
higoress/HackerRank
ac13fc378734e70eef08b357bb36c47655d7d0be
[ "MIT" ]
null
null
null
python/is_binary_tree.py
higoress/HackerRank
ac13fc378734e70eef08b357bb36c47655d7d0be
[ "MIT" ]
null
null
null
python/is_binary_tree.py
higoress/HackerRank
ac13fc378734e70eef08b357bb36c47655d7d0be
[ "MIT" ]
null
null
null
def resolve(node, min_key, max_key): if not node: return True if (node.data < min_key) or (node.data > max_key): return False return ( resolve(node.left, min_key, node.data-1) and resolve(node.right, node.data+1, max_key) ) def check_binary_search_tree_(root): max_key ...
29
59
0.633005
11462cc25fbaaf12ab6a620f9b025376cfc7b400
1,227
py
Python
src/turtlebot_easyprog/aktoren.py
marvinferber/turtlebot_easyprog
8d6bca3a112cc78aa46b1a3e4a293eb4041b071c
[ "Apache-2.0" ]
null
null
null
src/turtlebot_easyprog/aktoren.py
marvinferber/turtlebot_easyprog
8d6bca3a112cc78aa46b1a3e4a293eb4041b071c
[ "Apache-2.0" ]
null
null
null
src/turtlebot_easyprog/aktoren.py
marvinferber/turtlebot_easyprog
8d6bca3a112cc78aa46b1a3e4a293eb4041b071c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2016 Marvin Ferber # # 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 r...
27.886364
76
0.677262
c90e4b4bf18ba2cd784f7c7310cbe811433179e5
3,070
py
Python
tests/onegov/town/test_views.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/town/test_views.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/town/test_views.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import onegov.core import onegov.town from tests.shared import Client, utils def test_view_permissions(): utils.assert_explicit_permissions(onegov.town, onegov.town.TownApp) def test_startpage(town_app): client = Client(town_app) links = client.get('/').pyquery('.top-bar-section a') assert links[...
33.369565
79
0.662866
42f3b4b285b17c6b06483991bc8f004d1e10ce1e
290
py
Python
python_playground/data/dataset_statistics.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_playground/data/dataset_statistics.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_playground/data/dataset_statistics.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
if __name__ == '__main__': small_data_set_lst = ['ca-GrQc', 'ca-HepTh', 'p2p-Gnutella06', 'wiki-Vote', ] medium_data_set_lst = ['email-Enron', 'email-EuAll', 'web-NotreDame', 'web-Stanford', 'web-berkStan', 'web-Google'] large_data_set_lst = ['cit-Patents', 'soc-LiveJournal1']
58
119
0.672414
285a1aba894b7f26afedac95755b057e8d6f9591
1,155
py
Python
leetcode/084-Largest-Rectangle-in-Histogram/LargestRectinHistogram_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2017-05-18T06:11:02.000Z
2017-05-18T06:11:02.000Z
leetcode/084-Largest-Rectangle-in-Histogram/LargestRectinHistogram_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/084-Largest-Rectangle-in-Histogram/LargestRectinHistogram_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution: # @param {integer[]} height # @return {integer} def largestRectangleArea(self, height): maxval = 0 if not height: return maxval cand = [[0, height[0]]] for i in range(1, len(height)): h = height[i] if h >= height[cand[-1][0]...
33.970588
64
0.361905
66a0e5de38357823b74960331365f22c3569e562
2,030
py
Python
DBSCAN/src/test.py
quqixun/MLAlgorithms
1ad46a899a6280a08c196fb4eb0931408c8636c7
[ "MIT" ]
2
2018-04-25T18:00:28.000Z
2018-08-08T09:39:18.000Z
DBSCAN/src/test.py
quqixun/MLAlgorithms
1ad46a899a6280a08c196fb4eb0931408c8636c7
[ "MIT" ]
null
null
null
DBSCAN/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 "DBSCAN". # Author: Qixun Qu # Create on: 2018/06/13 # Modify on: 2018/06/16 # ,,, ,,, # ;" '; ;' ", # ; @.ss$$$$$$s.@ ; # `s$$$$$$$$$$$$$$$' # $$$$$$$$$$$$$$$$$$ # $$$$P""Y$$$Y""W$$$$$ # $$$$ p"$$$"q $$$$$ # $$$$ ...
26.363636
78
0.615271
b0caf9eb6f6037d669287d45771c0154c0f33245
4,141
py
Python
user/serializers.py
MIXISAMA/MIS-backend
7aaa1be773718de1beb3ce0080edca7c4114b7ad
[ "MIT" ]
null
null
null
user/serializers.py
MIXISAMA/MIS-backend
7aaa1be773718de1beb3ce0080edca7c4114b7ad
[ "MIT" ]
null
null
null
user/serializers.py
MIXISAMA/MIS-backend
7aaa1be773718de1beb3ce0080edca7c4114b7ad
[ "MIT" ]
2
2020-04-20T07:26:51.000Z
2020-04-30T11:51:54.000Z
from django.contrib.auth.models import Group, User from rest_framework import serializers from user.models import Student, Teacher, Tutor, CM, PM, Squad class CreateUserSerializer(serializers.HyperlinkedModelSerializer): name = serializers.CharField(source='first_name') class Meta: model = User ...
33.666667
89
0.703695
c68767c99a5324afa8bec1434e0e9967458b0f9a
2,928
py
Python
recipes/protobuf/3.7.1/conanfile.py
SolarFramework/conan-solar
cdb6253556c056baacaf3e5f28b595869adddb88
[ "Apache-2.0" ]
null
null
null
recipes/protobuf/3.7.1/conanfile.py
SolarFramework/conan-solar
cdb6253556c056baacaf3e5f28b595869adddb88
[ "Apache-2.0" ]
3
2021-02-15T08:48:16.000Z
2021-02-24T16:35:54.000Z
recipes/protobuf/3.7.1/conanfile.py
SolarFramework/conan-solar
cdb6253556c056baacaf3e5f28b595869adddb88
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from conans import ConanFile, CMake, tools class ProtobufConan(ConanFile): name = "protobuf" upstream_version = "3.7.1" package_revision = "" version = "{0}{1}".format(upstream_version, package_revision) url = "https://github.com/Solar-Fra...
35.277108
99
0.659495
c6930bd088907c7a2cceaf1a14026831655c34bf
2,046
py
Python
web/urls.py
Daniel-Hoerauf/cs3240-f16-team11
0377bcb8ede9599c04daf7683b065abb2a47f893
[ "MIT" ]
null
null
null
web/urls.py
Daniel-Hoerauf/cs3240-f16-team11
0377bcb8ede9599c04daf7683b065abb2a47f893
[ "MIT" ]
null
null
null
web/urls.py
Daniel-Hoerauf/cs3240-f16-team11
0377bcb8ede9599c04daf7683b065abb2a47f893
[ "MIT" ]
null
null
null
from django.conf.urls import url from reports import views as report_views from . import views urlpatterns = [ url(r'^$', views.home, name='home'), url(r'^register/$', views.register_page, name='register_page'), url(r'^create_account/$', views.create_account, name='create_account'), url(r'^home/$', vie...
48.714286
105
0.686706
05e40db7e6fd1195a3aa6edc7e27e276afa7b05d
70
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-006/pg-6.8-dara-1-50-a2-efecient.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-006/pg-6.8-dara-1-50-a2-efecient.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-006/pg-6.8-dara-1-50-a2-efecient.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
result = 0 for num in range(1, 51): result += num print(result)
10
24
0.614286
afb1160bbf995e1e39d5a90f7f51f177a604ac08
926
py
Python
tsTserv3.py
kona3266/SocketServer
2bc9b271c909bba6b6457c709c98e95919f86198
[ "Apache-2.0" ]
null
null
null
tsTserv3.py
kona3266/SocketServer
2bc9b271c909bba6b6457c709c98e95919f86198
[ "Apache-2.0" ]
null
null
null
tsTserv3.py
kona3266/SocketServer
2bc9b271c909bba6b6457c709c98e95919f86198
[ "Apache-2.0" ]
null
null
null
import cmdFunc import http.server from socket import * from time import ctime from threading import Thread def requesthandler(tcpClisock, addr): print('... connected from: ', addr) while True: try: data = tcpCliSock.recv(BUFSIZ) data = data.decode() data = cmdFunc.cm...
26.457143
67
0.638229
a59a40da24b753d17283c36f6ba4d17f25b3d9cd
1,785
py
Python
api/db/mysql_db.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
null
null
null
api/db/mysql_db.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
null
null
null
api/db/mysql_db.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/31 下午3:19 # @Author : Latent # @Email : latentsky@gmail.com # @File : mysql_sb.py # @Software: PyCharm # @class : 用于中间数据储存 # from abstract.db_base import DB_BASE import pymysql class MYSQL(object): def __init__(self, databaseName, collectionName, ): ...
30.254237
104
0.509244
594611241c9298e915b18511a09942a334a7a019
1,733
py
Python
FCU_Select_Class.py
balsi2001/FCU
39269f65d862769d74b27d91ceed9e3bdb75d81f
[ "MIT" ]
null
null
null
FCU_Select_Class.py
balsi2001/FCU
39269f65d862769d74b27d91ceed9e3bdb75d81f
[ "MIT" ]
null
null
null
FCU_Select_Class.py
balsi2001/FCU
39269f65d862769d74b27d91ceed9e3bdb75d81f
[ "MIT" ]
null
null
null
from datetime import date from email import header import imp from wsgiref import headers import requests import bs4 import re import ddddocr import urllib3 import base64 import urllib.request from PIL import Image import http.cookiejar as cookielib from selenium.webdriver.chrome.options import Options import config...
28.409836
93
0.763993
3cdc3448d9b10a6429febc6144181b2d3a16bc2d
1,158
py
Python
leetcode/150-Evaluate-Reverse-Polish-Notation/ERPN_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/150-Evaluate-Reverse-Polish-Notation/ERPN_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/150-Evaluate-Reverse-Polish-Notation/ERPN_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
# @author: cchen class Solution: # @param {string[]} tokens # @return {integer} def evalRPN(self, tokens): i = 0 while len(tokens) != 1: if not tokens[i].strip('-').isdigit(): # 1st prob in py, integer checker including negative ones if tokens[i] == '*': ...
39.931034
109
0.397237
055a4828ba870eddd900fba66e0dcafa64bcd2ea
513
py
Python
011 Inzidenzen.py
Gravitar64/KESS
174bf9ee853f7bfb0c2e652b83150045197b6425
[ "MIT" ]
null
null
null
011 Inzidenzen.py
Gravitar64/KESS
174bf9ee853f7bfb0c2e652b83150045197b6425
[ "MIT" ]
null
null
null
011 Inzidenzen.py
Gravitar64/KESS
174bf9ee853f7bfb0c2e652b83150045197b6425
[ "MIT" ]
null
null
null
import requests URL = "https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/RKI_Landkreisdaten/FeatureServer/0/query?where=GEN%20%3D%20'REGION%20HANNOVER'%20OR%20GEN%20%3D%20'FLENSBURG'%20OR%20GEN%20%3D%20'NORDFRIESLAND'%20OR%20GEN%20%3D%20'CELLE'&outFields=GEN,cases7_per_100k_txt,last_update&returnGeome...
51.3
327
0.779727
2f017c26918ffbf2440e41b1ece0d802c8d03985
3,978
py
Python
classifier_speech_features_application.py
gumaga/-audiotechnik_gruppe_3_finale_abgabe-
b31b5d7db064b09a2f6f97e08b54eff0cd12d091
[ "Unlicense" ]
1
2021-03-12T20:02:23.000Z
2021-03-12T20:02:23.000Z
classifier_speech_features_application.py
gumaga/-audiotechnik_gruppe_3_finale_abgabe-
b31b5d7db064b09a2f6f97e08b54eff0cd12d091
[ "Unlicense" ]
null
null
null
classifier_speech_features_application.py
gumaga/-audiotechnik_gruppe_3_finale_abgabe-
b31b5d7db064b09a2f6f97e08b54eff0cd12d091
[ "Unlicense" ]
null
null
null
""" Script classifier_speech_features_application.py For more information on this file see: README.md 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 soundf...
39.386139
116
0.764957
bd46f753acceec51aabadac2f628999f157daacc
348
py
Python
tests/test_tags.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
tests/test_tags.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
16
2017-09-13T10:21:40.000Z
2020-06-01T04:32:22.000Z
tests/test_tags.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
import pytest import requests_mock from flask import url_for import utils def tags_data(): return utils.load_test_data('show_tags.json') def test_show_tags(client): with requests_mock.Mocker() as mock: mock.get('/api/tags', json=tags_data()) resp = client.get(url_for('tags.show_tags')) as...
24.857143
52
0.718391
20f9b87035d1555e69e71609d6075e421574eaf3
421
py
Python
INBa/2015/Kishukov_N/task_1_10.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Kishukov_N/task_1_10.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Kishukov_N/task_1_10.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 1. Вариант 10 # Напишите программу, которая будет сообщать род деятельности и псевдоним под которым скрывается Ричард Дженкинс. После вывода информации программа должна дожидаться пока пользователь нажмет Enter для выхода. # Кишуков Назир # 28.02.2016 print ("Ричард Дженкинс американский актер кино,театра и ...
42.1
208
0.807601
1f2f3e796f6729d59421f03553e66dc0219f5c83
3,224
py
Python
official/cv/lenet/infer/sdk/python_lenet/main.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/lenet/infer/sdk/python_lenet/main.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/lenet/infer/sdk/python_lenet/main.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# coding=utf-8 # 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 ...
34.666667
91
0.644231
c09b643a4373be4affc2d252851fcd466c1395d4
598
py
Python
Backend/timer.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
15
2020-04-24T20:18:11.000Z
2022-01-31T21:05:05.000Z
Backend/timer.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
2
2021-05-19T07:15:09.000Z
2022-03-07T08:29:34.000Z
Backend/timer.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
4
2020-04-27T16:20:13.000Z
2021-02-23T10:39:42.000Z
import logging from functools import wraps from time import time logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) ch = logging.StreamHandler() ch.setFormatter(logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')) logger.addHandler(ch) def timer(func): @wraps(func) ...
23
90
0.62709
c8b6ef09a4e1a805945d38715c55708fb0806b62
444
py
Python
pyconuk/migrations/0005_page_show_sponsors.py
PyconUK/2017.pyconuk.org
337a00c034a15e5b41a8ea8683dd44310e14fb9c
[ "MIT" ]
3
2017-10-24T13:33:29.000Z
2017-10-30T10:47:28.000Z
pyconuk/migrations/0005_page_show_sponsors.py
PyconUK/2017.pyconuk.org
337a00c034a15e5b41a8ea8683dd44310e14fb9c
[ "MIT" ]
78
2017-02-14T16:49:58.000Z
2018-04-19T06:28:42.000Z
pyconuk/migrations/0005_page_show_sponsors.py
PyconUK/2017.pyconuk.org
337a00c034a15e5b41a8ea8683dd44310e14fb9c
[ "MIT" ]
36
2017-06-19T07:48:38.000Z
2018-01-19T11:08:10.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2017-09-24 21:11 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pyconuk', '0004_sponsor'), ] operations = [ migrations.AddField( ...
21.142857
52
0.61036
c8b7beaba93b43bf510523f7955b3f291ba716f7
1,182
py
Python
exercises/python/data-types/collections/namedtuples.py
rogeriosantosf/hacker-rank-profile
d4b9c131524d138c415e5c5de4e38c6b8c35dd77
[ "MIT" ]
null
null
null
exercises/python/data-types/collections/namedtuples.py
rogeriosantosf/hacker-rank-profile
d4b9c131524d138c415e5c5de4e38c6b8c35dd77
[ "MIT" ]
null
null
null
exercises/python/data-types/collections/namedtuples.py
rogeriosantosf/hacker-rank-profile
d4b9c131524d138c415e5c5de4e38c6b8c35dd77
[ "MIT" ]
null
null
null
# Dr. John Wesley has a spreadsheet containing a list of student's IDs, marks, class and name. # Your task is to help Dr. Wesley calculate the average marks of the students. # avarage = Sum of All Marks / Total of Students # Sample Input # TESTCASE 01 # 5 # ID MARKS NAME CLASS # 1 97 ...
23.64
94
0.523689
c8c1ad22ff5be635aa581ac0b86851998271ae54
6,634
py
Python
packages/watchmen-model/src/watchmen_model/pipeline_kernel/pipeline_monitor_log.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/pipeline_kernel/pipeline_monitor_log.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/pipeline_kernel/pipeline_monitor_log.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from datetime import datetime from decimal import Decimal from enum import Enum from typing import Any, Dict, List, Optional, TypeVar, Union from pydantic import BaseModel from watchmen_model.admin import DeleteTopicActionType, PipelineActionType, ReadTopicActionType, SystemActionType, \ WriteTopicActionType from wa...
29.616071
119
0.781429
a9831dc473c94843723a6d2f51e960c0c5bd3508
5,838
py
Python
teacher.py
jayelm/rl-starter-files
045302672e6ae5f4704afce56b788a67393dcc52
[ "MIT" ]
null
null
null
teacher.py
jayelm/rl-starter-files
045302672e6ae5f4704afce56b788a67393dcc52
[ "MIT" ]
null
null
null
teacher.py
jayelm/rl-starter-files
045302672e6ae5f4704afce56b788a67393dcc52
[ "MIT" ]
null
null
null
""" Teacher that goes from demonstrations -> language """ import math import torch import random from torch import nn from torch.autograd import Variable import torch.nn.functional as F from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence import numpy as np class DemonstrationEncoder(nn.Module): ...
34.341176
88
0.603631
f517b085d9cbfd57965b75d5e0e5427f9c245118
1,897
py
Python
face_sdk/utils/lms_trans.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
1,329
2021-01-13T07:06:30.000Z
2022-03-31T07:23:39.000Z
face_sdk/utils/lms_trans.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
115
2021-01-13T10:42:57.000Z
2022-03-28T03:57:52.000Z
face_sdk/utils/lms_trans.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
351
2021-01-13T07:21:00.000Z
2022-03-29T14:11:39.000Z
""" @author: JiXuan Xu, Jun Wang @date: 20201015 @contact: jun21wangustc@gmail.com """ # it's a approximate map # 15 --> (99+103)/2 # 17, 19; 20, 22; 16; 9 will be used in face crop(25 points) lms25_2_lms106 = {1:105, 2:106, 3:34, 4:38, 5:43, 6:47, 7:52, 8:55, 9:88, 10:94, 11:85, 12...
32.706897
60
0.627833
270f222542e0e83fb37b4e016f8f04f5c7d33f5e
655
py
Python
Programming Languages/Python/Theory/100_Python_Challenges/Section _1_Basic_Coding_Exercises/19. return the numbers divisible by 15 in a list.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section _1_Basic_Coding_Exercises/19. return the numbers divisible by 15 in a list.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section _1_Basic_Coding_Exercises/19. return the numbers divisible by 15 in a list.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
""" Write a Python function that generates a list named 'input_list' containing 10 random numbers ranging from 0-100, and then the function should return a list of numbers divisible by fifteen from the 'input_list'. Example: input_list = [15,30,45,46,47,60,75,99,100] output_list = [15, 30, 45, 60, 75] """ import r...
22.586207
114
0.61374
276fa2f1a21c8398545fe6e5de74455aac5988c4
861
py
Python
reverse/app.py
kugelr/k8s-string-converter
7dc59f385cee29473ad2388f2e91cb7cdd81ca97
[ "Apache-2.0" ]
58
2016-06-05T02:11:55.000Z
2019-04-28T18:36:11.000Z
reverse/app.py
kugelr/k8s-string-converter
7dc59f385cee29473ad2388f2e91cb7cdd81ca97
[ "Apache-2.0" ]
1
2021-11-01T23:33:25.000Z
2021-11-01T23:33:25.000Z
reverse/app.py
kugelr/k8s-string-converter
7dc59f385cee29473ad2388f2e91cb7cdd81ca97
[ "Apache-2.0" ]
14
2016-07-06T14:24:57.000Z
2019-03-15T09:46:01.000Z
# Copyright 2016, Google, Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, so...
41
96
0.739837
27deae1ac18de4210a36783809fc5c726e06aabc
369
py
Python
nz_tornado02/utils/db.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_tornado02/utils/db.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_tornado02/utils/db.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker #连接数据库 db_uri = 'mysql+pymysql://root:123456@127.0.0.1:3306/tornado_nz' #创建数据库引擎 建立连接 engine = create_engine(db_uri) #创建基类 方便后边创建模型 Base = declarative_base(bind=engine) #数据库的增删改查 需要 ...
23.0625
64
0.804878
8b576e8119e4e277c5002d0c8447dfcb2010fae8
1,338
py
Python
nz_django/day5/wsgirequest_demo/front/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_django/day5/wsgirequest_demo/front/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_django/day5/wsgirequest_demo/front/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from django.shortcuts import render from django.http import HttpResponse,JsonResponse # Create your views here. def index(request): print(request.method) print(request.path) print(request.GET.get('username')) return HttpResponse('index') def login(request): print(request.get_host()) #127.0.0.1:800...
29.733333
83
0.647235
7beb1ce50dd90298497ee287a51b380f37b97c70
3,298
py
Python
xiaobu/robot/TTS.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
1
2020-07-16T02:52:47.000Z
2020-07-16T02:52:47.000Z
xiaobu/robot/TTS.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
null
null
null
xiaobu/robot/TTS.py
hanyanze/FS_AILPB
7756551cf926aa6296ec851dd696c97d56e06bca
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8-*- import os import base64 import tempfile import pypinyin from aip import AipSpeech from . import utils, config, constants from robot import logging from pathlib import Path from pypinyin import lazy_pinyin from pydub import AudioSegment from abc import ABCMeta, abstractmethod logger = logging.get...
28.678261
80
0.620376
3263c896b2a21568392480cb486d72bd6343fa34
475
py
Python
volley/serializers/orjson_serializer.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
8
2022-02-24T14:59:24.000Z
2022-03-31T04:37:55.000Z
volley/serializers/orjson_serializer.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
3
2022-02-27T17:08:52.000Z
2022-03-18T13:11:01.000Z
volley/serializers/orjson_serializer.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
2
2022-02-24T15:03:07.000Z
2022-03-15T03:12:00.000Z
from typing import Any, Dict import orjson from volley.serializers.base import BaseSerialization class OrJsonSerialization(BaseSerialization): def serialize(self, message: Dict[Any, Any]) -> bytes: serialized: bytes = orjson.dumps(message, option=orjson.OPT_NAIVE_UTC, default=str) return seriali...
29.6875
91
0.724211
19bcd317ad8dc05fc0ab8521e4a9e16f6047f56f
5,248
py
Python
Python/Buch_ATBS/Teil_2/Kapitel_13_Arbeiten_mit_Word_und_PDF_Dokumenten/07_docx_einleitung_python_docx/07_docx_einleitung_python_docx.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_2/Kapitel_13_Arbeiten_mit_Word_und_PDF_Dokumenten/07_docx_einleitung_python_docx/07_docx_einleitung_python_docx.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_2/Kapitel_13_Arbeiten_mit_Word_und_PDF_Dokumenten/07_docx_einleitung_python_docx/07_docx_einleitung_python_docx.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# 07_word_einleitung_python_docx.py # In diesem Beispiel wird das Modul Python-Docx vorgestellt. Damit lässt sich in docx-Dokumenten # lesen und schreiben. Das Modul Python-Docx muss jedoch erst installiert werden da es nicht # standardmässig zu Python dazugehört. import os, re, docx os.chdir(os.path.dirname(__fil...
76.057971
630
0.778201
19d44ab78538be0ed9e4e82c80086b740b48a461
2,150
py
Python
scripts/component_graph/test/far/test_far_reader.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
3
2020-08-02T04:46:18.000Z
2020-08-07T10:10:53.000Z
scripts/component_graph/test/far/test_far_reader.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
scripts/component_graph/test/far/test_far_reader.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
1
2020-08-07T10:11:49.000Z
2020-08-07T10:11:49.000Z
# 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. import unittest import base64 import gzip import io from far.far_reader import far_read, FarFormatError INVALID_FILE = b"AAAAAAAAAAAAAAAAAA" EOF_INDEX_LEN =...
43
97
0.804651
dfff671c3f77fd72f5a50b5587476e2140e142ec
2,406
py
Python
Packs/BitSight/Integrations/BitSightForSecurityPerformanceManagement/BitSightForSecurityPerformanceManagement_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/BitSight/Integrations/BitSightForSecurityPerformanceManagement/BitSightForSecurityPerformanceManagement_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/BitSight/Integrations/BitSightForSecurityPerformanceManagement/BitSightForSecurityPerformanceManagement_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 CommonServerPython import BaseClient import BitSightForSecurityPerformanceManagement as bitsight from datetime import datetime def test_get_companies_guid_command(mocker): # Positive Scenario client = bitsight.Client(base_url='https://test.com') res = {"my_company": {"g...
39.442623
113
0.65586
a0ae6e1765c590d22838b936e3b29d8a01bebaf0
1,306
py
Python
publ/cards.py
PlaidWeb/Publ
67efc5e32bf25dbac72a83d1167de038b79db5a7
[ "MIT" ]
27
2018-11-30T21:32:26.000Z
2022-03-20T19:46:25.000Z
publ/cards.py
PlaidWeb/Publ
67efc5e32bf25dbac72a83d1167de038b79db5a7
[ "MIT" ]
249
2018-09-30T07:04:37.000Z
2022-03-29T04:31:00.000Z
publ/cards.py
fluffy-critter/Publ
868c5a17c605707dde4d1a95d79405301bd12f05
[ "MIT" ]
4
2019-03-01T06:46:13.000Z
2019-06-30T17:45:46.000Z
# cards.py """ Rendering functions for Twitter/OpenGraph cards""" import logging import typing from . import utils LOGGER = logging.getLogger(__name__) class CardData(): """ Extracted card data """ # pylint: disable=too-few-public-methods def __init__(self): self.images: typing.List[ ...
23.745455
62
0.533691
260525b98934dda5baea0a12c3a42ded32462f98
10,378
py
Python
project/models.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
project/models.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
35
2022-01-24T22:15:59.000Z
2022-03-31T15:01:35.000Z
project/models.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
import datetime import time from enum import IntEnum from authlib.integrations.sqla_oauth2 import ( OAuth2AuthorizationCodeMixin, OAuth2ClientMixin, OAuth2TokenMixin, ) from flask import request from flask_security import RoleMixin, UserMixin, current_user from sqlalchemy import ( Boolean, Column, ...
28.827778
89
0.660725
3e798de8f05ad0388acf52adf7f80e8ca996599c
384
py
Python
source/pkgsrc/devel/py-manticore/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/devel/py-manticore/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/devel/py-manticore/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-setup.py,v 1.1 2020/09/29 03:27:32 khorben Exp $ Use the ptable2 Python module to implement prettytable --- setup.py.orig 2020-06-27 01:54:55.000000000 +0000 +++ setup.py @@ -54,7 +54,7 @@ setup( install_requires=[ "pyyaml", "pysha3", - "prettytable", + "PTable", ...
24
63
0.559896
e41db4f9d48b906bc4fcc913801d333cdf8fe93b
1,217
py
Python
Hackergame_2020/字符串工具/string_tool.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
22
2018-08-07T06:55:10.000Z
2021-06-12T02:12:19.000Z
Hackergame_2020/字符串工具/string_tool.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
28
2020-03-04T23:47:22.000Z
2022-02-26T18:50:00.000Z
Hackergame_2020/字符串工具/string_tool.py
Wycers/Codelib
86d83787aa577b8f2d66b5410e73102411c45e46
[ "MIT" ]
4
2019-11-09T15:41:26.000Z
2021-10-10T08:56:57.000Z
import re def to_upper(s): r = re.compile('[fF][lL][aA][gG]') if r.match(s): print('how dare you') elif s.upper() == 'FLAG': print('yes, I will give you the flag') print(open('/flag1').read()) else: print('%s' % s.upper()) def to_utf8(s): r = re.compile('[fF][lL][aA...
28.302326
77
0.550534
e4a9d013f3e973138bdca30f07cd560e468f19dd
2,409
py
Python
respiratory/Processed Datasets/Processed Datasets/week6.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
2
2020-06-08T19:17:10.000Z
2020-06-08T20:45:07.000Z
respiratory/Processed Datasets/Processed Datasets/week6.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
14
2015-10-07T09:31:50.000Z
2022-02-23T07:34:10.000Z
respiratory/Processed Datasets/Processed Datasets/week6.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
null
null
null
class patients(object): def __init__(self,number,scores,stats,participated,rank,actual_rank,overall): self.number = number # integer from 1-10. patient number. self.scores = scores # list of floats element of [0,10]. Floats are scores for a given exercise. self.stats = stats # for n exercises this is a list c...
26.472527
214
0.623495
5f6d0829ff63282cfe3bcb97af286b03f460a045
4,526
py
Python
Prototype/main prototype/RWidget.py
fowado/BauphysikSE1
eb8805196c8fbf99a879c40c5e0725d740c5a0de
[ "CC-BY-4.0" ]
4
2019-12-03T16:13:09.000Z
2019-12-11T23:22:58.000Z
Prototype/main prototype/RWidget.py
fowado/BauphysikSE1
eb8805196c8fbf99a879c40c5e0725d740c5a0de
[ "CC-BY-4.0" ]
65
2019-12-08T17:43:59.000Z
2020-08-14T15:26:21.000Z
Prototype/main prototype/RWidget.py
fowado/BauphysikSE1
eb8805196c8fbf99a879c40c5e0725d740c5a0de
[ "CC-BY-4.0" ]
null
null
null
# This Python file uses the following encoding: utf-8 from PyQt5 import QtCore from PyQt5 import QtWidgets from CustomMiniWidgets import MyDoubleSpinBox class RWidget(QtWidgets.QWidget): def __init__(self): QtWidgets.QWidget.__init__(self) #layout of widget rLayout = QtWidgets.QGridLayout...
44.372549
88
0.685815
fff53513444eb205c94cef9cb317358452765da0
425
py
Python
SoSe-21/Code-Vorlesungen/VL-4/for-Schleife-2.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
SoSe-21/Code-Vorlesungen/VL-4/for-Schleife-2.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
SoSe-21/Code-Vorlesungen/VL-4/for-Schleife-2.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
# for - Schleife # for - als Ansage, dass ab jetzt eine for-Schleife kommt # zaehler - der zählt hoch, wie oft die Schleife schon gelaufen ist (häufig i o.ä.) # in - gibt die Bedingung für die for-Schleife an # range() - ist eine Funktion, mithilfe derer Sie bestimmte Schritte gehen und zählen können # range(start, s...
32.692308
92
0.689412
082ad52f44ff5b9048d42b8df48a55377cef96e9
680
py
Python
bridges/bridges_config.py
ChristianKitte/Textextraktion-und-Einordnung-mit-Hilfe-neuronaler-Netze
53d3fc6b1c17f31146741cdebd743f4aa12a09e0
[ "MIT" ]
null
null
null
bridges/bridges_config.py
ChristianKitte/Textextraktion-und-Einordnung-mit-Hilfe-neuronaler-Netze
53d3fc6b1c17f31146741cdebd743f4aa12a09e0
[ "MIT" ]
16
2020-01-28T23:04:13.000Z
2022-03-12T00:02:40.000Z
bridges/bridges_config.py
ChristianKitte/Textextraktion-und-Einordnung-mit-Hilfe-neuronaler-Netze
53d3fc6b1c17f31146741cdebd743f4aa12a09e0
[ "MIT" ]
null
null
null
"""A general configuration file for the bridges used. The naming convention is freely selectable. Each bridge can store and behave entries here. """ GPU_LIST = '0' """Specification of the available GPUs """ CRNN_Model_Path = 'bridges/models/crnn/pretrained/model.hdf5' """Path to CRNN model (model and weights) ...
34
103
0.741176
8a8d3a94f93fae19d7a61be3cbce941341e8ca4c
360
py
Python
Python/Collections/default_dict.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Python/Collections/default_dict.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Python/Collections/default_dict.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
from collections import defaultdict # https://www.hackerrank.com/challenges/defaultdict-tutorial/problem?h_r=internal-search d = defaultdict(list) d['A'].extend(['a','a','b','a','b']) d['B'].extend(['a','b']) print(d) for x in d['B']: if x in d['A']: for i,j in enumerate(d['A'],start=1): if x == j: print...
18.947368
88
0.605556
8aca54926f274ab39cb72d1c1367e6f4aa6b7a08
4,377
py
Python
e3/india/E3_2021ss_India.py
hka-mmv/dscb-exercise
7a3081074b36ac3242282f89480eb03535ba40d3
[ "MIT" ]
5
2021-03-29T17:27:14.000Z
2022-03-15T08:53:12.000Z
e3/india/E3_2021ss_India.py
hka-mmv/dscb-exercise
7a3081074b36ac3242282f89480eb03535ba40d3
[ "MIT" ]
32
2021-04-28T21:02:16.000Z
2021-06-28T14:56:53.000Z
e3/india/E3_2021ss_India.py
hka-mmv/dscb-exercise
7a3081074b36ac3242282f89480eb03535ba40d3
[ "MIT" ]
3
2021-06-01T08:06:19.000Z
2021-06-07T14:28:09.000Z
import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import requests # TODO import module for requests class example: def __init__(self): self.data = self.read("e3\india\AB_NYC_2019.csv") self.url = "https://github.com/hka-mmv/dscb230-exercise/blob/main/e1/lecturer/AB_NYC_20...
31.489209
135
0.614119
6a5662af57510ef4589db785abd9d01b7f43190f
2,032
py
Python
Algorithms/Greedy/Kruskals Algorithm/kruskals.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
26
2019-07-17T11:05:43.000Z
2022-02-06T08:31:40.000Z
Algorithms/Greedy/Kruskals Algorithm/kruskals.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
7
2019-07-16T19:52:25.000Z
2022-01-08T08:03:44.000Z
Algorithms/Greedy/Kruskals Algorithm/kruskals.py
Nidita/Data-Structures-Algorithms
7b5198c8d37e9a70dd0885c6eef6dddd9d85d74a
[ "MIT" ]
19
2020-01-14T02:44:28.000Z
2021-12-27T17:31:59.000Z
class Graph: def __init__(self): self.edges = list() self.vertices = list() def add(self, edge): self.edges.append(edge) v1, v2, _ = edge self.vertices.append(v1) self.vertices.append(v2) def parent(self, vertices, vertex): if vertices[verte...
25.4
95
0.48376
6ade64092a69d23ee4abf7322a46271a12b3badb
414
py
Python
Coursera/Using Python to Access Web Data/Week-6/Assignment/ExtractingDataFromJSON.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
331
2019-10-22T09:06:28.000Z
2022-03-27T13:36:03.000Z
Coursera/Using Python to Access Web Data/Week-6/Assignment/ExtractingDataFromJSON.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
8
2020-04-10T07:59:06.000Z
2022-02-06T11:36:47.000Z
Coursera/Using Python to Access Web Data/Week-6/Assignment/ExtractingDataFromJSON.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
572
2019-07-28T23:43:35.000Z
2022-03-27T22:40:08.000Z
import urllib.request, urllib.parse, urllib.error import json #Data collection link = input('Enter location: ') print('Retrieving', link) html = urllib.request.urlopen(link).read().decode() print('Retrieved', len(html), 'characters') try: js = json.loads(html) except: js = None cn = 0 sm = 0 for item in js[...
16.56
51
0.649758
6b43e4a092891c8e288019937fa2cba851592378
2,229
py
Python
Packs/GoogleCloudStorage/Integrations/GoogleCloudStorage/GoogleCloudStorage_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/GoogleCloudStorage/Integrations/GoogleCloudStorage/GoogleCloudStorage_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/GoogleCloudStorage/Integrations/GoogleCloudStorage/GoogleCloudStorage_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from GoogleCloudStorage import * from datetime import datetime def test_ec_key(): # No entry merging assert ec_key('Foo.Bar.Baz') == 'Foo.Bar.Baz' # Merge entries by single ID field assert ec_key('Foo.Bar.Baz', 'ID') == 'Foo.Bar.Baz(val.ID && val.ID === obj.ID)' # Merge entries by multiple ID f...
42.056604
113
0.635262
8633ba694e162f08560a80b83e9cb4792ab96583
256
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v6_8/make_webform_standard.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v6_8/make_webform_standard.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v6_8/make_webform_standard.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
import frappe def execute(): pass # done via fixtures # frappe.reload_doctype("Web Form") # frappe.delete_doc("Web Form", "Issues") # frappe.delete_doc("Web Form", "Addresses") # from erpnext.setup.install import add_web_forms # add_web_forms()
18.285714
50
0.71875
d4c97e765e5d332b2cd958681ab4d1021354d205
10,363
py
Python
AP_SS16/703/python_custom_scripts/table.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
3
2016-04-27T17:07:00.000Z
2022-02-02T15:43:15.000Z
AP_SS16/406/python_custom_scripts/table.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
5
2016-04-27T17:10:03.000Z
2017-06-20T14:54:20.000Z
AP_SS16/703/python_custom_scripts/table.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
null
null
null
import itertools import codecs import uncertainties import fileinput import numpy as np import uncertainties.unumpy as unp from uncertainties.unumpy import ( nominal_values as noms, std_devs as stds, ) from uncertainties import ufloat def search_replace_within_file(filenameToSearch, textToSearch, textToReplace...
43.179167
210
0.600019
be20ab90c7cf09a8d31489561c029f82ef519df3
361
py
Python
app/database.py
Eggolt/Webdashboard
440e7cda510d4adf559572636611cbecf1b0ffae
[ "MIT" ]
null
null
null
app/database.py
Eggolt/Webdashboard
440e7cda510d4adf559572636611cbecf1b0ffae
[ "MIT" ]
null
null
null
app/database.py
Eggolt/Webdashboard
440e7cda510d4adf559572636611cbecf1b0ffae
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker SQLALCHEMY_DATABASE_URL = "postgresql://pguser:pgpass@postgresql:5432/pgdb" engine = create_engine(SQLALCHEMY_DATABASE_URL) SessionLocal = sessionmaker(autocommit=False, autoflush=False...
36.1
75
0.847645
07a215fae59ac9e47d0371d8889bb5f058195805
394
py
Python
Competitions/Ad Infinitum 18/Tower 3-Coloring/tower.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Competitions/Ad Infinitum 18/Tower 3-Coloring/tower.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Competitions/Ad Infinitum 18/Tower 3-Coloring/tower.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/bin/python3 import sys import math _m = int(pow(10, 9))+7 def towerColoring(n): # Complete this function global _m if n == 0: return 3 elif n == 1: return 27 elif n == 2: return 3**9 else: aux = towerColoring(n-3) res = pow(aux, 27, _m) ret...
14.592593
32
0.543147
07f466efd2abb9f12b7172c8dd217797fada2e92
2,733
py
Python
app/core/tests/test_models.py
mshirzad/find-my-job
7dca88d6233649952f0b948156a91af5b96352ff
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
mshirzad/find-my-job
7dca88d6233649952f0b948156a91af5b96352ff
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
mshirzad/find-my-job
7dca88d6233649952f0b948156a91af5b96352ff
[ "MIT" ]
1
2022-03-06T17:44:49.000Z
2022-03-06T17:44:49.000Z
from unittest.mock import patch from django.test import TestCase from django.contrib.auth import get_user_model from core import models def create_sample_user(email='test@findmyjob.com', password='test@1234', name='Test User'): user = get_user_model().objects.create_user(email, password) user.name = name ...
28.175258
91
0.618002
71f47fa8cecd111ff86add50012f3ac502221b8e
893
py
Python
src/test/tests/rendering/compositing.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/rendering/compositing.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/rendering/compositing.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: compositing.py # # Tests: postprocessing of transparent images in SR mode. # # Programmer: Tom Fogal # Date: June 3, 2009 # # Modifications: # # Mark C. Miller, Wed Jan 20 07:37:11 PST 2010 # ...
22.325
78
0.601344
13ad20d23061706de6412fd81e6b2b5c27a0f5e0
4,353
py
Python
reports/srp/code/final_tuning.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
1
2020-04-17T12:27:06.000Z
2020-04-17T12:27:06.000Z
reports/srp/code/final_tuning.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
1
2022-02-27T13:13:17.000Z
2022-02-27T13:13:17.000Z
reports/srp/code/final_tuning.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
null
null
null
""" The final model tuning is put in a python script, because to run it in terminal seems to be a little bit faster than to print everything into a jupyter notebook apparently... """ import sys sys.path.append('.') from datetime import datetime from os import path from kerastuner import Hyperband, HyperParameters fr...
31.773723
114
0.684126
6a454408a112830bcaefff0ae19bb273b3c930cb
1,124
py
Python
Algorithms/2_Implementation/2.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
1
2021-11-25T13:39:30.000Z
2021-11-25T13:39:30.000Z
Algorithms/2_Implementation/2.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
Algorithms/2_Implementation/2.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/apple-and-orange/problem #!/bin/python3 import math import os import random import re import sys # # Complete the 'countApplesAndOranges' function below. # # The function accepts following parameters: # 1. INTEGER s # 2. INTEGER t # 3. INTEGER a # 4. INTEGER b # 5. INTEGE...
22.48
64
0.662811
0ee618d3452b20acfc0bf8015c29cb94d8ba4c92
14,167
py
Python
packages/watchmen-model/src/watchmen_model/chart/chart.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/chart/chart.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/chart/chart.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from enum import Enum from typing import Any, Dict, List, Optional, Union from pydantic import BaseModel from watchmen_model.common import DataModel from .chart_basic_style import ChartBorder, ChartBorderStyle, ChartFont from .chart_settings import ChartSettings from .chart_types import ChartColor, ChartType class ...
22.886914
120
0.771652
16b28870315dd8d5b2bbd4175b9515d674ea36f3
751
py
Python
Algorithms/Implementation/GridSearch.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Implementation/GridSearch.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Implementation/GridSearch.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 for _ in xrange(int(raw_input())): R, C = map(int, raw_input().split()) grid = [] for _ in xrange(R): grid.append(raw_input()) r, c = map(int, raw_input().split()) patterns = [raw_input() for _ in xrange(r)] can_search = False for i in xrange(R): for j in ...
25.033333
53
0.41012
4c1ae35a88cf562c89c1f5c7794ef01b94e42598
1,968
py
Python
tarefas-poo/lista-03/enigma/view/interface_com_usuario.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-03/enigma/view/interface_com_usuario.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-03/enigma/view/interface_com_usuario.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
# -------------------------- # UFSC - CTC - INE - INE5663 # Exercício Enigma # -------------------------- # Classe que representa a interface com o usuário # from view.menu import Menu from view.paineis.painel_cria_tabela import PainelCriaTabela from view.paineis.painel_enigma import PainelEnigma class InterfaceComUs...
35.142857
76
0.54878
4c1ed010287be727be28606e6ee831cc27a1c47a
848
py
Python
DataProcess/auto_rotation/split_dataset.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
DataProcess/auto_rotation/split_dataset.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
DataProcess/auto_rotation/split_dataset.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
from sklearn.model_selection import train_test_split import pandas as pd import numpy as np filepath = 'dataset_group2' data = pd.read_csv(f'{filepath}/dataset.csv', header=None) messages = data.iloc[:, 0] y = data.iloc[:, 1] messages_train, messages_test, y_train, y_test = train_test_split(messages, y, test_size=0.3...
35.333333
112
0.754717
4c3ed1341d769751d9087e0114a4a775a8e2f14b
1,437
py
Python
python/oneflow/test/graph/test_graph_session_env_destruct1.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/test/graph/test_graph_session_env_destruct1.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/test/graph/test_graph_session_env_destruct1.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...
28.74
72
0.751566
4c57c761f6c51643c9d80ca8e668987ced56701c
16,841
py
Python
src/Sephrasto/CharakterProfaneFertigkeitenWrapper.py
Ilaris-Tools/Sephrasto
8574a5b45da8ebfa5f69a775066fd3136da1c718
[ "MIT" ]
1
2022-02-02T16:15:59.000Z
2022-02-02T16:15:59.000Z
src/Sephrasto/CharakterProfaneFertigkeitenWrapper.py
Ilaris-Tools/Sephrasto
8574a5b45da8ebfa5f69a775066fd3136da1c718
[ "MIT" ]
1
2022-01-14T11:04:19.000Z
2022-01-14T11:04:19.000Z
src/Sephrasto/CharakterProfaneFertigkeitenWrapper.py
lukruh/Sephrasto
8574a5b45da8ebfa5f69a775066fd3136da1c718
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Mar 10 17:33:11 2017 @author: Lennart """ from Wolke import Wolke import UI.CharakterProfaneFertigkeiten import CharakterTalentPickerWrapper import MousewheelProtector from PyQt5 import QtWidgets, QtCore, QtGui import logging from PyQt5.QtWidgets import QHeaderView from Ferti...
45.888283
203
0.62716
fc00ccebb4c62f548ff440ab3c2927338d20aa7f
9,066
py
Python
bson/objectid.py
dxmahata/TwitterSentimentAnalysis
b228747dfa74266853d4f8e6d4bc4eb29c080dd3
[ "MIT" ]
1
2017-05-25T04:23:58.000Z
2017-05-25T04:23:58.000Z
bson/objectid.py
dxmahata/TwitterSentimentAnalysis
b228747dfa74266853d4f8e6d4bc4eb29c080dd3
[ "MIT" ]
1
2016-05-09T16:13:48.000Z
2016-05-09T16:13:48.000Z
bson/objectid.py
dxmahata/TwitterSentimentAnalysis
b228747dfa74266853d4f8e6d4bc4eb29c080dd3
[ "MIT" ]
null
null
null
# Copyright 2009-2014 MongoDB, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
31.047945
78
0.597507
fc07b8001804ceda5a8b569630fec851285a9e81
5,449
py
Python
recipes/openjpeg/2.3.1/conanfile.py
SolarFramework/conan-solar
cdb6253556c056baacaf3e5f28b595869adddb88
[ "Apache-2.0" ]
null
null
null
recipes/openjpeg/2.3.1/conanfile.py
SolarFramework/conan-solar
cdb6253556c056baacaf3e5f28b595869adddb88
[ "Apache-2.0" ]
3
2021-02-15T08:48:16.000Z
2021-02-24T16:35:54.000Z
recipes/openjpeg/2.3.1/conanfile.py
SolarFramework/conan-solar
cdb6253556c056baacaf3e5f28b595869adddb88
[ "Apache-2.0" ]
null
null
null
from conans import ConanFile, CMake, tools import os import glob class OpenjpegConan(ConanFile): name = "openjpeg" url = "https://github.com/Solar-Framework/conan-solar/recipes/openjpeg/2.3.1" description = "OpenJPEG is an open-source JPEG 2000 codec written in C language." topics = ("conan", "jpeg200...
49.536364
121
0.615893
fca47e1f070f9662ef8c95ad4d60f3f372cea11d
397
py
Python
PINp/2014/Chernov_M_S/task_5_27.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Chernov_M_S/task_5_27.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Chernov_M_S/task_5_27.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задание 5. Вариант 27. # Напишите программу, которая бы при запуске случайным образом отображала # название одного из двенадцати месяцев. # Чернов Михаил Сергеевич # 28.05.2016 import random x=random.choice(["Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Дек...
36.090909
133
0.712846
538b1d5240bcc1c3710d0a2b008c7f015f505915
642
py
Python
518-coin-change-2/518-coin-change-2.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
518-coin-change-2/518-coin-change-2.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
518-coin-change-2/518-coin-change-2.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def change(self, amount: int, coins: List[int]) -> int: if amount==0: return 1 else: num_coin = len(coins) dp=[[0]*num_coin] for money in range(1, amount+1): output=[0]*num_coin for coin_idx in range(num_...
37.764706
75
0.465732
0712ac441cbdc1b2bc36d77d385832f56b83968f
4,694
py
Python
isp/helper/sphinx/source/conf.py
MePyDo/pygqa
61cde42ee815968fdd029cc5056ede3badea3d91
[ "MIT" ]
3
2021-02-25T13:19:52.000Z
2021-03-03T03:46:46.000Z
isp/helper/sphinx/source/conf.py
MedPhyDO/app-skeleton
1161736ccf356c704c6c13b17fa11aca64b17dac
[ "MIT" ]
null
null
null
isp/helper/sphinx/source/conf.py
MedPhyDO/app-skeleton
1161736ccf356c704c6c13b17fa11aca64b17dac
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup -------------------------------------------------------------- # If extensions (or modul...
30.679739
151
0.681295
0745be10a9dfaea21211c48378ec2c265eed8d42
2,519
py
Python
research/cv/midas/src/blocks_ms.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/midas/src/blocks_ms.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/midas/src/blocks_ms.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.144737
78
0.621675
4aff2975519256c540bbe89c302961b191c27a9a
127
py
Python
app.py
shwarzes89/WIT
54ba3ff8a7143948935510facf4b64cdd7f0bd74
[ "MIT" ]
null
null
null
app.py
shwarzes89/WIT
54ba3ff8a7143948935510facf4b64cdd7f0bd74
[ "MIT" ]
null
null
null
app.py
shwarzes89/WIT
54ba3ff8a7143948935510facf4b64cdd7f0bd74
[ "MIT" ]
null
null
null
import cv2 import numpy as np img = cv2.imread('road.png', 0) cv2.imshow('image',img) cv2.waitKey(0) cv2.destroyAllWindows()
14.111111
31
0.724409
37e8d36cf567e47aacb4a52138de6f32d2ffe090
4,214
py
Python
ListenUp/core/question_options.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
ListenUp/core/question_options.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
ListenUp/core/question_options.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict from typing import Dict, Iterable, Tuple, Union from util.annotations import override from util.namedtuple_factory import register_namedtuple from util.tupleable import Tupleable types = OrderedDict(( ('Multiple Choice', 'multiple'), ('True or False', 'boolean'),...
30.316547
95
0.579972
530cdb49f4b00d8d36d2808d48384b55cb480b8d
6,101
py
Python
Packs/LogsignSiem/Integrations/LogsignSiem/LogsignSiem_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/LogsignSiem/Integrations/LogsignSiem/LogsignSiem_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/LogsignSiem/Integrations/LogsignSiem/LogsignSiem_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json from unittest.mock import patch import pytest from LogsignSiem import * from test_data.sample_data import * import demistomock TEST_URL = "https://example.com" def get_client(url: str = TEST_URL, api_key: str = "apikey", verify: bool = False, proxy: bool = False): return Client(url=url, api_key=api...
36.975758
116
0.719718
725be8e779753f4e0ee96dbe969450d4d1dc522b
862
py
Python
src/onegov/user/errors.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/user/errors.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/user/errors.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
class OnegovUserError(Exception): """ Base class for all errors raised by onegov.user. """ def __init__(self, message): self.message = message class UnknownUserError(OnegovUserError): """ Raised when a user was not found. """ class InvalidActivationTokenError(OnegovUserError): """ Raised whe...
24.628571
65
0.700696
f43b97a16bdffc42acb3dbd710daade426967f08
126
py
Python
session15/parse_word_files.py
NeumannSven/pyshb_programmierkurs
518da3766dff36e938b36c49d410edb52c0cb32c
[ "MIT" ]
2
2019-10-26T12:47:05.000Z
2020-07-07T16:36:19.000Z
session15/parse_word_files.py
NeumannSven/pyshb_programmierkurs
518da3766dff36e938b36c49d410edb52c0cb32c
[ "MIT" ]
null
null
null
session15/parse_word_files.py
NeumannSven/pyshb_programmierkurs
518da3766dff36e938b36c49d410edb52c0cb32c
[ "MIT" ]
4
2020-02-28T13:43:05.000Z
2020-12-02T10:39:46.000Z
from docx import Document doc = Document("session15/test.docx") for paragraph in doc.paragraphs: print(paragraph.text)
15.75
37
0.753968
f4801c4f699bb14b82315ef3a95ac424e54e8377
11,909
py
Python
utils/unrolled_rnn.py
oracleofnj/nmt-attention-tensorflow
6907def51daf3b1b8f0a2b683f220494a7361a75
[ "MIT" ]
2
2018-01-10T03:12:09.000Z
2018-02-20T14:40:28.000Z
utils/unrolled_rnn.py
oracleofnj/nmt-attention-tensorflow
6907def51daf3b1b8f0a2b683f220494a7361a75
[ "MIT" ]
null
null
null
utils/unrolled_rnn.py
oracleofnj/nmt-attention-tensorflow
6907def51daf3b1b8f0a2b683f220494a7361a75
[ "MIT" ]
null
null
null
"""Functional implementation of GRU RNN.""" import tensorflow as tf def make_rnn_variables( vocab_size, embedding_size, hidden_size, reuse_embeddings_for_softmax=True, initializer_scale=0.05, ): """Create the trainable variables for the RNN.""" with tf.variable_scope( 'RNNParams', ...
30.932468
76
0.494836
435cc0243fa5cfdb74b68c933dbcd3014a6b5d15
818
py
Python
chapter101/postgres_mongodb.py
thiagola92/learning-databases-with-python
cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e
[ "MIT" ]
null
null
null
chapter101/postgres_mongodb.py
thiagola92/learning-databases-with-python
cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e
[ "MIT" ]
null
null
null
chapter101/postgres_mongodb.py
thiagola92/learning-databases-with-python
cf23c34d7fd1ecd36dd3e7b30dc5916eb23eaf1e
[ "MIT" ]
null
null
null
import psycopg import psycopg.extras from pymongo import MongoClient from datetime import datetime start = datetime.now() postgres_client = psycopg.connect("postgres://username:password@127.0.0.1") mongo_client = MongoClient("mongodb://username:password@127.0.0.1") cursor = postgres_client.cursor() database = mongo...
22.108108
75
0.756724
e0d6bce52654cf576fa116384099391d21d5a05b
12,398
py
Python
Packs/Carbon_Black_Enterprise_Response/Integrations/CarbonBlackResponseV2/CarbonBlackResponseV2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Carbon_Black_Enterprise_Response/Integrations/CarbonBlackResponseV2/CarbonBlackResponseV2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Carbon_Black_Enterprise_Response/Integrations/CarbonBlackResponseV2/CarbonBlackResponseV2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import io import dateparser import pytest from freezegun import freeze_time import demistomock as demisto def util_load_json(path): with io.open(path, mode='r', encoding='utf-8') as f: return json.loads(f.read()) QUERY_STRING_CASES = [ ( {'query': 'chrome.exe'}, False, # case ...
33.238606
116
0.663817
c7423ba906f31b3cb5c206d7b3c967600f0b4d26
14,207
py
Python
src/historie/views.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
1
2021-12-20T20:15:26.000Z
2021-12-20T20:15:26.000Z
src/historie/views.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
null
null
null
src/historie/views.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.contrib import messages from django.http import HttpResponse from django.core.paginator import Paginator from kandidaturen.models import Kandidatur, KandidaturMail, KandidaturAmt from mitglieder.models import Mitglied, MitgliedMail, MitgliedAmt from aemter.mode...
54.019011
210
0.716407
c7bfdcc9d10daf7f9cda66b24eb2f0cd07ad2850
1,162
py
Python
eventex/subscriptions/views.py
adsons3c/wttd
f2ebb8234f8531e2dc6a272f57a458fd00fc793b
[ "MIT" ]
null
null
null
eventex/subscriptions/views.py
adsons3c/wttd
f2ebb8234f8531e2dc6a272f57a458fd00fc793b
[ "MIT" ]
7
2019-12-04T23:14:37.000Z
2021-06-10T18:13:27.000Z
eventex/subscriptions/views.py
adsons3c/wttd
f2ebb8234f8531e2dc6a272f57a458fd00fc793b
[ "MIT" ]
null
null
null
from django.contrib import messages from django.http import HttpResponseRedirect, HttpResponse from django.shortcuts import render from eventex.subscriptions.forms import SubscriptionsForm from django.template.loader import render_to_string from django.core import mail def subscribe(request): if request.method =...
36.3125
82
0.628227
404518226fccaf37d52a6da8f115842e4bd166ae
2,477
py
Python
software/supervisor/GUI.py
ghsecuritylab/project-powerline
6c0ec13bbfc11c3790c506f644db4fe45021440a
[ "MIT" ]
null
null
null
software/supervisor/GUI.py
ghsecuritylab/project-powerline
6c0ec13bbfc11c3790c506f644db4fe45021440a
[ "MIT" ]
null
null
null
software/supervisor/GUI.py
ghsecuritylab/project-powerline
6c0ec13bbfc11c3790c506f644db4fe45021440a
[ "MIT" ]
1
2020-03-08T01:50:58.000Z
2020-03-08T01:50:58.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- import sys from PyQt5.QtWidgets import * from PyQt5.QtGui import QFont from PyQt5.QtCore import * from views import HomeView, ConfigurationView, ErrorView, HandyNbView, HistoryView from reporter import Reporter from input_handler import InputHandler class MainWindow(QWidge...
32.592105
114
0.698426
4049e52ca4735cbac802c9236472d41a6f0bcf15
550
pyde
Python
sketches/pipaletten/pipaletten.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/pipaletten/pipaletten.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/pipaletten/pipaletten.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
myMagma = ['#000003', '#170F3C', '#430F75', '#711F81', '#9E2E7E', '#CB3E71', '#F0605D', '#FC9366', '#FEC78B', '#FBFCBF'] pi100 = ("31415926535897932384626433832795028841971693993751058209749445923" + "078164062862089986280348253421170679") def setup(): size(275, 275) this.surface.setTitle("...
28.947368
76
0.569091
4086bebb1bf3dde1196c463bcd10c134fb75b73b
3,047
py
Python
Python/Sonstige_Uebungen/Deep Learning/recognizeNumbers/recognizeNumbers.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Sonstige_Uebungen/Deep Learning/recognizeNumbers/recognizeNumbers.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Sonstige_Uebungen/Deep Learning/recognizeNumbers/recognizeNumbers.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # #### # File: recognizeNumbers.py # Project: Deep Learning #----- # Created Date: Saturday 16.01.2021, 20:59 # Author: Apop85 #----- # Last Modified: Saturday 16.01.2021, 21:45 #----- # Copyright (c) 2021 Apop85 # This software is published under the MIT license. # Check...
36.710843
177
0.730226
40b06da93a8542fa8c2659940a01b6e48b241a2f
483
py
Python
nz_crawl_demo/day1/python3/demo1.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_crawl_demo/day1/python3/demo1.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_crawl_demo/day1/python3/demo1.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
#encoding:utf-8 # import sys # print sys.version 打印python的版本 import urllib from urllib import request url = "https://www.baidu.com" headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36", } #构建请求对象 request = urllib.request....
25.421053
136
0.714286
40eb16c040754e55bf2b4c948c4a2fd73269080b
729
py
Python
retro/cores/gba/src/platform/python/mgba/gamedata.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
2,706
2018-04-05T18:28:50.000Z
2022-03-29T16:56:59.000Z
retro/cores/gba/src/platform/python/mgba/gamedata.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
242
2018-04-05T22:30:42.000Z
2022-03-19T01:55:11.000Z
retro/cores/gba/src/platform/python/mgba/gamedata.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
464
2018-04-05T19:10:34.000Z
2022-03-28T13:33:32.000Z
# Copyright (c) 2013-2017 Jeffrey Pfau # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. try: import mgba_gamedata except ImportError: pass def search(core): ...
31.695652
78
0.665295
2920e9293d725045eaace7480a7e8b8729cf6bcb
1,275
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v5_0/index_on_account_and_gl_entry.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/v5_0/index_on_account_and_gl_entry.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v5_0/index_on_account_and_gl_entry.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
from __future__ import unicode_literals import frappe def execute(): index_map = { "Account": ["parent_account", "lft", "rgt"], "GL Entry": ["posting_date", "account", 'party', "voucher_no"], "Sales Invoice": ["posting_date", "debit_to", "customer"], "Purchase Invoice": ["posting_date", "credit_to", "supplie...
42.5
101
0.669804
2927a8d2f6ce2840d619bc9537364fdcf316c68a
3,287
py
Python
examples/v1beta1/trial-images/enas-cnn-cifar10/ModelConstructor.py
d-gol/katib
2c8758b26ffd543e08b70464f8ac7b286f3ca2ea
[ "Apache-2.0" ]
17
2018-04-04T08:44:06.000Z
2018-04-19T18:02:05.000Z
examples/v1beta1/trial-images/enas-cnn-cifar10/ModelConstructor.py
d-gol/katib
2c8758b26ffd543e08b70464f8ac7b286f3ca2ea
[ "Apache-2.0" ]
58
2018-04-03T19:05:50.000Z
2018-04-19T16:14:04.000Z
examples/v1beta1/trial-images/enas-cnn-cifar10/ModelConstructor.py
d-gol/katib
2c8758b26ffd543e08b70464f8ac7b286f3ca2ea
[ "Apache-2.0" ]
10
2018-04-04T02:06:20.000Z
2018-04-19T08:53:04.000Z
# Copyright 2022 The Kubeflow Authors. # # 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 in ...
40.085366
92
0.64314
4696728a22d4a2e3472c9fc44fb5694aa450a8e0
357
py
Python
src/austria/tests/test_views.py
frocentus/offenewahlen_api
71860583890f8a4c23df67f271e8f13558fa9582
[ "MIT" ]
14
2017-07-12T14:42:57.000Z
2017-09-08T20:32:53.000Z
src/austria/tests/test_views.py
frocentus/offenewahlen_api
71860583890f8a4c23df67f271e8f13558fa9582
[ "MIT" ]
209
2017-07-11T21:36:01.000Z
2017-11-05T01:10:50.000Z
src/austria/tests/test_views.py
OKFNat/offenewahlen-api
71860583890f8a4c23df67f271e8f13558fa9582
[ "MIT" ]
8
2017-07-15T09:40:42.000Z
2018-01-12T03:02:06.000Z
from django.test import Client, TestCase from django.conf import settings class ViewTest(TestCase): """ Simple test for views. """ def setUp(self): """ Set up the test class. """ self.client = Client() def test_index(self): """ Test the index view. """ response = self.client.get('/') self.as...
15.521739
45
0.663866
734a44184c1a50ffac50ffade6db5d8df8ae8eb2
8,523
py
Python
src/server/app/repository/standby/PresentationRepository.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
null
null
null
src/server/app/repository/standby/PresentationRepository.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
null
null
null
src/server/app/repository/standby/PresentationRepository.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
null
null
null
from ..models.Presentation import Presentation from ..models.TaskList import TaskList import time import uuid import json from bson import json_util from ..db.settings import mongoclient # from .TaskRepository import TaskRepository from .CanvasRepository import CanvasRepository from .AuthenticationRepository import A...
34.228916
132
0.577027
5ef46acdaed1a77958d00fd81fc52c7191c1eacd
333
py
Python
tarefas-poo/lista-04/jogo_da_velha/model/jogador_abstrato.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-04/jogo_da_velha/model/jogador_abstrato.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-04/jogo_da_velha/model/jogador_abstrato.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
# -------------------------- # UFSC - CTC - INE - INE5663 # Exercício do Jogo da Velha # -------------------------- # Classe que representa um jogador abstrato. # from abc import ABC, abstractmethod class JogadorAbstrato(ABC): @abstractmethod def nome(self): '''Retorna o nome do jogador. ''' ...
19.588235
44
0.534535