hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
247
max_forks_repo_name
stringlengths
4
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
e68f063286831b1e435dc23fedc1ab0c986fc844
8,311
py
Python
pyaib/linesocket.py
loljoho-old/ainu
70c15e59f387817c271c9b282b16423cbba7b6a2
[ "Apache-2.0" ]
null
null
null
pyaib/linesocket.py
loljoho-old/ainu
70c15e59f387817c271c9b282b16423cbba7b6a2
[ "Apache-2.0" ]
null
null
null
pyaib/linesocket.py
loljoho-old/ainu
70c15e59f387817c271c9b282b16423cbba7b6a2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2013 Facebook # # 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 agree...
35.216102
79
0.545783
#!/usr/bin/env python # # Copyright 2013 Facebook # # 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 agree...
6,417
19
426
364c359b4af83293ca8e35c2b54053600928c890
1,174
py
Python
2nd_100/problem108.py
takekoputa/project-euler
6f434be429bd26f5d0f84f5ab0f5fa2bd677c790
[ "MIT" ]
null
null
null
2nd_100/problem108.py
takekoputa/project-euler
6f434be429bd26f5d0f84f5ab0f5fa2bd677c790
[ "MIT" ]
null
null
null
2nd_100/problem108.py
takekoputa/project-euler
6f434be429bd26f5d0f84f5ab0f5fa2bd677c790
[ "MIT" ]
1
2021-11-02T12:08:46.000Z
2021-11-02T12:08:46.000Z
# Question: https://projecteuler.net/problem=108 """ 1/x + 1/y = 1/n Since n > 0, we have x > n and y > n. Assume x >= y. Let x = n + a, y = n + b. 1/x + 1/y = 1/n -> xn + yn = xy -> (n+a)n + (n+b)n = (n+a)(n+b) -> 2n^2 + an + bn = n^2 + an + bn + ab -> n^2 = ab The number of solutions of (x,y) for each n is the nu...
34.529412
120
0.584327
# Question: https://projecteuler.net/problem=108 """ 1/x + 1/y = 1/n Since n > 0, we have x > n and y > n. Assume x >= y. Let x = n + a, y = n + b. 1/x + 1/y = 1/n -> xn + yn = xy -> (n+a)n + (n+b)n = (n+a)(n+b) -> 2n^2 + an + bn = n^2 + an + bn + ab -> n^2 = ab The number of solutions of (x,y) for each n is the nu...
0
0
0
4ad1e402d4b20f23f6ba3b10ad2eb51fccb091c3
10,031
py
Python
src/virtual-wan/azext_vwan/commands.py
ibabedal/azure-cli-extensions
ae86b635e5669e7088108506b8964c6daedb7742
[ "MIT" ]
2
2021-06-05T17:51:26.000Z
2021-11-17T11:17:56.000Z
src/virtual-wan/azext_vwan/commands.py
ibabedal/azure-cli-extensions
ae86b635e5669e7088108506b8964c6daedb7742
[ "MIT" ]
1
2020-06-12T01:39:40.000Z
2020-06-12T01:39:40.000Z
src/virtual-wan/azext_vwan/commands.py
ibabedal/azure-cli-extensions
ae86b635e5669e7088108506b8964c6daedb7742
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
48.458937
167
0.718572
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
9,131
0
22
fccdc2372d03085d61290955d27b6d16997c2aac
3,925
py
Python
train_cnn_model.py
jacksonwalters/text-binary-classifier
667ec9c899735d897a2fc954b9d1d9ad89d42140
[ "MIT" ]
null
null
null
train_cnn_model.py
jacksonwalters/text-binary-classifier
667ec9c899735d897a2fc954b9d1d9ad89d42140
[ "MIT" ]
null
null
null
train_cnn_model.py
jacksonwalters/text-binary-classifier
667ec9c899735d897a2fc954b9d1d9ad89d42140
[ "MIT" ]
null
null
null
#DATA: 6,000 labled tweets before 2020 election from Biden=0, Trump=1. #VECTORIZER: tokenizer. vocab size 19,415. #MODEL: 1-d CNN with a global max-pool layer. if __name__ == "__main__": #load the data import os import pandas as pd os.chdir('/Users/jacksonwalters/tensorflow_datasets') filepath_di...
37.028302
120
0.672102
#DATA: 6,000 labled tweets before 2020 election from Biden=0, Trump=1. #VECTORIZER: tokenizer. vocab size 19,415. #MODEL: 1-d CNN with a global max-pool layer. if __name__ == "__main__": #load the data import os import pandas as pd os.chdir('/Users/jacksonwalters/tensorflow_datasets') filepath_di...
683
0
27
25f94c8f84cb34ad71d414206a53ba24e0277a80
1,971
py
Python
bot.py
Stashchen/bot-top-ranking-slack
9fe3a673a9a023b9329b23229fa619d12da93b4b
[ "MIT" ]
null
null
null
bot.py
Stashchen/bot-top-ranking-slack
9fe3a673a9a023b9329b23229fa619d12da93b4b
[ "MIT" ]
null
null
null
bot.py
Stashchen/bot-top-ranking-slack
9fe3a673a9a023b9329b23229fa619d12da93b4b
[ "MIT" ]
null
null
null
from flask import Flask, Response, request import json import os from threading import Thread from poll import Poll from slack import WebClient from slackeventsapi import SlackEventAdapter from handlers.handlers import handle_commands, handle_interactivity # Start Flask app that will be produce all the requests app ...
31.285714
94
0.734652
from flask import Flask, Response, request import json import os from threading import Thread from poll import Poll from slack import WebClient from slackeventsapi import SlackEventAdapter from handlers.handlers import handle_commands, handle_interactivity # Start Flask app that will be produce all the requests app ...
0
0
0
3078806d0483db47b47c2e1a70d09713610e7d96
427
py
Python
my_lambda/test.py
Terrencebosco/lambdata-dspt7-tb
9a5be4e6e0fea1801393253221fcca0511ded83c
[ "MIT" ]
null
null
null
my_lambda/test.py
Terrencebosco/lambdata-dspt7-tb
9a5be4e6e0fea1801393253221fcca0511ded83c
[ "MIT" ]
null
null
null
my_lambda/test.py
Terrencebosco/lambdata-dspt7-tb
9a5be4e6e0fea1801393253221fcca0511ded83c
[ "MIT" ]
null
null
null
from my_lambda.my_classes import MyUtilities import numpy as np import pandas as pd if __name__ == "__main__": d = {'col1': [1, 5, 3, 100, 8], 'col2': [3, 4, np.nan, 5, 6]} dt = MyUtilities(d) print(dt.num_nans()) X_train, X_val, X_test, y_train, y_val, y_test = dt.train_validation_test_...
23.722222
114
0.639344
from my_lambda.my_classes import MyUtilities import numpy as np import pandas as pd if __name__ == "__main__": d = {'col1': [1, 5, 3, 100, 8], 'col2': [3, 4, np.nan, 5, 6]} dt = MyUtilities(d) print(dt.num_nans()) X_train, X_val, X_test, y_train, y_val, y_test = dt.train_validation_test_...
0
0
0
eae15b49724fd67ea584c4beb8c7b5c0c80b1714
4,468
py
Python
kuryr_kubernetes/tests/unit/controller/drivers/test_base.py
MaysaMacedo/kuryr-kubernetes-1
e4ba3896974e98dc46cb1afd9cbec42646250d72
[ "Apache-2.0" ]
null
null
null
kuryr_kubernetes/tests/unit/controller/drivers/test_base.py
MaysaMacedo/kuryr-kubernetes-1
e4ba3896974e98dc46cb1afd9cbec42646250d72
[ "Apache-2.0" ]
null
null
null
kuryr_kubernetes/tests/unit/controller/drivers/test_base.py
MaysaMacedo/kuryr-kubernetes-1
e4ba3896974e98dc46cb1afd9cbec42646250d72
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 Mirantis, Inc. # 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 requir...
38.852174
79
0.705685
# Copyright (c) 2016 Mirantis, Inc. # 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 requir...
2,670
951
69
c3cc2f62b1c83e90106c355852be900796b650f2
716
py
Python
Leetcode/week_1/p0867_transpose_matrix.py
SamSamhuns/wallbreakers_projekts
c07b555127ee89d6f461cea7cd87811c382086ff
[ "MIT" ]
1
2021-07-07T00:55:23.000Z
2021-07-07T00:55:23.000Z
Leetcode/week_1/p0867_transpose_matrix.py
SamSamhuns/wallbreakers_projekts
c07b555127ee89d6f461cea7cd87811c382086ff
[ "MIT" ]
null
null
null
Leetcode/week_1/p0867_transpose_matrix.py
SamSamhuns/wallbreakers_projekts
c07b555127ee89d6f461cea7cd87811c382086ff
[ "MIT" ]
null
null
null
from typing import List """ Runtime: O(mn) Space: O(mn) where m = no of rows in A and n = no of cols in A Runtime: 72 ms, faster than 80.91% of Python3 online submissions for Transpose Matrix. Memory Usage: 13.4 MB, less than 100.00% of Python3 online submissions for Transpose Matrix. """
29.833333
92
0.620112
from typing import List class Solution: def transpose(self, A: List[List[int]]) -> List[List[int]]: return self.manual_transpose(A) def manual_transpose(self, A: List[List[int]]) -> List[List[int]]: B = [[0] * len(A) for _ in range(len(A[0]))] # transposed matrix for i in range(len(B...
352
-6
76
d72e01e482deb9e10813b6f69d66e5c7f1cd4601
323
py
Python
application/model/layout/option/OptionPopup.py
Kzulfazriawan/Stigma-game-demo
971ee90a908784dfe1c9e87733b0394fa2212299
[ "MIT" ]
2
2016-08-09T05:33:21.000Z
2016-10-05T06:34:04.000Z
application/model/layout/option/OptionPopup.py
Kzulfazriawan/stigma-game-demo
971ee90a908784dfe1c9e87733b0394fa2212299
[ "MIT" ]
null
null
null
application/model/layout/option/OptionPopup.py
Kzulfazriawan/stigma-game-demo
971ee90a908784dfe1c9e87733b0394fa2212299
[ "MIT" ]
null
null
null
from core import Files from library.stigma.helper import kivyBuilder from library.stigma.application import Popup kivyBuilder(Files.apppath, 'model', 'builder', 'option', 'optionpopup.kv')
32.3
74
0.736842
from core import Files from library.stigma.helper import kivyBuilder from library.stigma.application import Popup kivyBuilder(Files.apppath, 'model', 'builder', 'option', 'optionpopup.kv') class OptionPopup(Popup): def __init__(self): super(OptionPopup, self).__init__() self.title = "Pick one Opti...
81
4
49
ad98b9b64db2a280ab328b62dbe4ff2dd803bdfd
14,838
py
Python
orquesta/tests/unit/conducting/test_workflow_conductor_branching.py
batk0/orquesta
f03f3f2f3820bf111a9277f4f6c5d6c83a89d004
[ "Apache-2.0" ]
null
null
null
orquesta/tests/unit/conducting/test_workflow_conductor_branching.py
batk0/orquesta
f03f3f2f3820bf111a9277f4f6c5d6c83a89d004
[ "Apache-2.0" ]
null
null
null
orquesta/tests/unit/conducting/test_workflow_conductor_branching.py
batk0/orquesta
f03f3f2f3820bf111a9277f4f6c5d6c83a89d004
[ "Apache-2.0" ]
null
null
null
# 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, software # distributed under th...
43.769912
100
0.657771
# 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, software # distributed under th...
13,949
43
131
3b3140ae07533c0cab7c07ae4475dbd5b63949e5
140
py
Python
pyroute2/netlink/rtnl/ifinfmsg/plugins/vrf.py
li-ma/pyroute2
48b85e39d675c18c05eb209229db082316aa760a
[ "Apache-2.0" ]
null
null
null
pyroute2/netlink/rtnl/ifinfmsg/plugins/vrf.py
li-ma/pyroute2
48b85e39d675c18c05eb209229db082316aa760a
[ "Apache-2.0" ]
null
null
null
pyroute2/netlink/rtnl/ifinfmsg/plugins/vrf.py
li-ma/pyroute2
48b85e39d675c18c05eb209229db082316aa760a
[ "Apache-2.0" ]
null
null
null
from pyroute2.netlink import nla
20
44
0.607143
from pyroute2.netlink import nla class vrf(nla): nla_map = (('IFLA_VRF_UNSPEC', 'none'), ('IFLA_VRF_TABLE', 'uint32'))
0
83
23
40523554accfed21ca85773e4e4bb4e36bdf5ef7
3,988
py
Python
train.py
Tandon-A/Tolkien-Bot
b19c9311ae4b33b30f0722e73bd2f981cff6beeb
[ "MIT" ]
null
null
null
train.py
Tandon-A/Tolkien-Bot
b19c9311ae4b33b30f0722e73bd2f981cff6beeb
[ "MIT" ]
null
null
null
train.py
Tandon-A/Tolkien-Bot
b19c9311ae4b33b30f0722e73bd2f981cff6beeb
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np import math import pickle import os """ Import sbot class definition. """ from sbot import sbot """ Function to load data and prepare the metadata variables """ """ Function to build training sequences. """ """ Training Function. """ flags = tf.app.flags...
30.442748
114
0.647693
import tensorflow as tf import numpy as np import math import pickle import os """ Import sbot class definition. """ from sbot import sbot """ Function to load data and prepare the metadata variables """ def load_data(file_path,meta_dir): with open(file_path,"r") as f: data = f.read() f.close() chars =...
3,231
0
92
552df972f2beb9f46a8f27ae713cff50805f25a7
2,840
py
Python
src/lib/mechanic/ui/lists/installation.py
JefferyQ/Mechanic
2c5f08484fbcc0bed23c077fe7c55b1c67baeba1
[ "MIT" ]
1
2019-04-07T23:44:14.000Z
2019-04-07T23:44:14.000Z
src/lib/mechanic/ui/lists/installation.py
JefferyQ/Mechanic
2c5f08484fbcc0bed23c077fe7c55b1c67baeba1
[ "MIT" ]
null
null
null
src/lib/mechanic/ui/lists/installation.py
JefferyQ/Mechanic
2c5f08484fbcc0bed23c077fe7c55b1c67baeba1
[ "MIT" ]
null
null
null
import webbrowser from AppKit import NSPredicate from mechanic.extension import Extension from mechanic.ui.lists.base import BaseList from mechanic.ui.formatters.description import DescriptionFormatter from mechanic.ui.cells.circle import CircleCell class InstallationList(BaseList): """Return an ExtensionList fo...
32.643678
72
0.597887
import webbrowser from AppKit import NSPredicate from mechanic.extension import Extension from mechanic.ui.lists.base import BaseList from mechanic.ui.formatters.description import DescriptionFormatter from mechanic.ui.cells.circle import CircleCell class InstallationList(BaseList): """Return an ExtensionList fo...
1,836
0
242
3d439768499921060939de124f36b2c3ee23e26c
3,305
py
Python
tests/boxes/util/test_filters.py
WildbookOrg/wbia-deprecate-tpl-brambox
9aa6a69f706d0653a65520c696a7cd66715b6a37
[ "MIT" ]
2
2019-03-23T03:14:11.000Z
2019-11-21T07:16:13.000Z
tests/boxes/util/test_filters.py
WildbookOrg/wbia-deprecate-tpl-brambox
9aa6a69f706d0653a65520c696a7cd66715b6a37
[ "MIT" ]
null
null
null
tests/boxes/util/test_filters.py
WildbookOrg/wbia-deprecate-tpl-brambox
9aa6a69f706d0653a65520c696a7cd66715b6a37
[ "MIT" ]
1
2021-12-01T03:04:53.000Z
2021-12-01T03:04:53.000Z
# -*- coding: utf-8 -*- import unittest import brambox.boxes as bbb if __name__ == '__main__': unittest.main()
33.383838
81
0.632375
# -*- coding: utf-8 -*- import unittest import brambox.boxes as bbb class TestImageBoundsFilter(unittest.TestCase): def setUp(self): # construct box that is in bounds self.box = bbb.Box() self.box.x_top_left = 2.0 self.box.y_top_left = 2.0 self.box.width = 5.0 self....
423
2,717
46
853a6d2f24a1015080819d399104966c122d17e8
761
py
Python
snippets/minimal_quick_gui.py
GLmontanari/pdEFFE
71764540dcf837708723a051c6c0f475a8e95d06
[ "MIT" ]
null
null
null
snippets/minimal_quick_gui.py
GLmontanari/pdEFFE
71764540dcf837708723a051c6c0f475a8e95d06
[ "MIT" ]
null
null
null
snippets/minimal_quick_gui.py
GLmontanari/pdEFFE
71764540dcf837708723a051c6c0f475a8e95d06
[ "MIT" ]
null
null
null
import sys from os.path import abspath, dirname, join from PyQt5.QtCore import QObject from PyQt5.QtGui import QGuiApplication from PyQt5.QtQml import QQmlApplicationEngine if __name__ == '__main__': app = QGuiApplication(sys.argv) engine = QQmlApplicationEngine() # Instance of the Python object br...
23.060606
66
0.700394
import sys from os.path import abspath, dirname, join from PyQt5.QtCore import QObject from PyQt5.QtGui import QGuiApplication from PyQt5.QtQml import QQmlApplicationEngine class Bridge(QObject): pass if __name__ == '__main__': app = QGuiApplication(sys.argv) engine = QQmlApplicationEngine() # Ins...
0
10
23
090c72d1ba8b02581515e14ab922e45df840c23a
6,375
py
Python
bot/main.py
Alohomora-team/2019.2-AlohomoraBot
7a4f0a7f12c3aa438a523f67200e4d1e59415cca
[ "MIT" ]
null
null
null
bot/main.py
Alohomora-team/2019.2-AlohomoraBot
7a4f0a7f12c3aa438a523f67200e4d1e59415cca
[ "MIT" ]
41
2019-10-11T05:22:14.000Z
2019-11-28T13:32:33.000Z
bot/main.py
Alohomora-team/2019.2-AlohomoraBot
7a4f0a7f12c3aa438a523f67200e4d1e59415cca
[ "MIT" ]
null
null
null
""" Start program """ import logging import os from commands import Commands from admin.admin_auth import AdminAuth from admin.notify_admin import NotifyAdmin from admin.register_admin import RegisterAdmin from feedback import Feedback from resident.notify_resident import NotifyResident from resident.register_residen...
32.860825
94
0.696314
""" Start program """ import logging import os from commands import Commands from admin.admin_auth import AdminAuth from admin.notify_admin import NotifyAdmin from admin.register_admin import RegisterAdmin from feedback import Feedback from resident.notify_resident import NotifyResident from resident.register_residen...
0
0
0
48cf55ac21dae1be0d14091ee631c6e3e8168d90
6,829
py
Python
sparkly/functions.py
Tubular/sparkly
015dbc830648e20ffeb6bf95a94a760c1fb94b6d
[ "Apache-2.0" ]
31
2016-12-03T06:54:54.000Z
2018-09-08T01:03:57.000Z
sparkly/functions.py
Tubular/sparkly
015dbc830648e20ffeb6bf95a94a760c1fb94b6d
[ "Apache-2.0" ]
23
2016-12-02T18:41:10.000Z
2018-06-08T23:54:34.000Z
sparkly/functions.py
Tubular/sparkly
015dbc830648e20ffeb6bf95a94a760c1fb94b6d
[ "Apache-2.0" ]
4
2016-12-31T19:15:21.000Z
2018-02-12T04:44:59.000Z
# # Copyright 2017 Tubular Labs, 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 ...
35.201031
99
0.633768
# # Copyright 2017 Tubular Labs, 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 ...
385
0
54
1a1d04e177e1156b4c571a0df1d6af5d60cdb792
281
py
Python
dev/circuitpython/examples/tc74_simpletest.py
scripsi/picodeebee
0ec77e92f09fa8711705623482e57a5e0b702696
[ "MIT" ]
null
null
null
dev/circuitpython/examples/tc74_simpletest.py
scripsi/picodeebee
0ec77e92f09fa8711705623482e57a5e0b702696
[ "MIT" ]
null
null
null
dev/circuitpython/examples/tc74_simpletest.py
scripsi/picodeebee
0ec77e92f09fa8711705623482e57a5e0b702696
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT import time import board import adafruit_tc74 i2c = board.I2C() tc = adafruit_tc74.TC74(i2c) while True: print(f"Temperature: {tc.temperature} C") time.sleep(0.5)
20.071429
63
0.715302
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT import time import board import adafruit_tc74 i2c = board.I2C() tc = adafruit_tc74.TC74(i2c) while True: print(f"Temperature: {tc.temperature} C") time.sleep(0.5)
0
0
0
19ce18ffdc412e7bb0a56f2e80ba483d5e2f76c1
2,819
py
Python
scripts/choosesubject.py
bhrt96/e-Learning-Portal
5ca4d7cc355999ddfcb2cfff18d9832d555cc081
[ "MIT" ]
null
null
null
scripts/choosesubject.py
bhrt96/e-Learning-Portal
5ca4d7cc355999ddfcb2cfff18d9832d555cc081
[ "MIT" ]
null
null
null
scripts/choosesubject.py
bhrt96/e-Learning-Portal
5ca4d7cc355999ddfcb2cfff18d9832d555cc081
[ "MIT" ]
null
null
null
#!/usr/bin/python import MySQLdb import cgi import Cookie import os if 'HTTP_COOKIE' in os.environ : cookie = Cookie.SimpleCookie(os.environ["HTTP_COOKIE"]) else : print "error" print "Content-type:text/html\r\n\r\n" db = MySQLdb.connect('localhost','root','1315','quiz', unix_socket="/opt/lampp/var/mysql/m...
28.765306
151
0.628592
#!/usr/bin/python import MySQLdb import cgi import Cookie import os if 'HTTP_COOKIE' in os.environ : cookie = Cookie.SimpleCookie(os.environ["HTTP_COOKIE"]) else : print "error" print "Content-type:text/html\r\n\r\n" db = MySQLdb.connect('localhost','root','1315','quiz', unix_socket="/opt/lampp/var/mysql/m...
0
0
0
b1770432e35eabd76a00e16b0c841f95caab2259
97
py
Python
common/__init__.py
BravoHaruki/api_auto_test
31a61609a7d4d39b361169c5b1aeedc604abb8af
[ "MIT" ]
null
null
null
common/__init__.py
BravoHaruki/api_auto_test
31a61609a7d4d39b361169c5b1aeedc604abb8af
[ "MIT" ]
null
null
null
common/__init__.py
BravoHaruki/api_auto_test
31a61609a7d4d39b361169c5b1aeedc604abb8af
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2022/1/13 10:13 下午 # @Author : Haruki # @File : __init__.py.py
19.4
28
0.56701
# -*- coding: utf-8 -*- # @Time : 2022/1/13 10:13 下午 # @Author : Haruki # @File : __init__.py.py
0
0
0
c3dc24353e71d3809f99fba2bd61617a0d602135
2,570
py
Python
hw_diag/tests/diagnostics/test_serial_number_diagnostic.py
KevinWassermann94/hm-diag
593a53f741b64c9fa029f5643b50abece9ce117b
[ "MIT" ]
14
2021-04-15T02:20:44.000Z
2022-02-23T19:46:34.000Z
hw_diag/tests/diagnostics/test_serial_number_diagnostic.py
KevinWassermann94/hm-diag
593a53f741b64c9fa029f5643b50abece9ce117b
[ "MIT" ]
245
2021-02-05T12:35:59.000Z
2022-03-31T14:50:53.000Z
hw_diag/tests/diagnostics/test_serial_number_diagnostic.py
KevinWassermann94/hm-diag
593a53f741b64c9fa029f5643b50abece9ce117b
[ "MIT" ]
16
2021-02-15T11:25:33.000Z
2022-03-14T23:49:34.000Z
import unittest from unittest.mock import patch, mock_open from hm_pyhelper.diagnostics.diagnostics_report import \ DIAGNOSTICS_PASSED_KEY, DIAGNOSTICS_ERRORS_KEY, DiagnosticsReport from hw_diag.diagnostics.serial_number_diagnostic import SerialNumberDiagnostic VALID_CPU_PROC = """00000000ddd1a4c2""" PADDED_CPU_P...
38.358209
79
0.695331
import unittest from unittest.mock import patch, mock_open from hm_pyhelper.diagnostics.diagnostics_report import \ DIAGNOSTICS_PASSED_KEY, DIAGNOSTICS_ERRORS_KEY, DiagnosticsReport from hw_diag.diagnostics.serial_number_diagnostic import SerialNumberDiagnostic VALID_CPU_PROC = """00000000ddd1a4c2""" PADDED_CPU_P...
1,794
400
23
54fc72b7e05eee4bcb468a02e6bab0f8218a0fa6
2,136
py
Python
src/main/script/simple.py
stefano-bragaglia/PyFoil
eb558659f2d0e1298ebd7b854c3ecdeb1a007bda
[ "BSD-2-Clause" ]
null
null
null
src/main/script/simple.py
stefano-bragaglia/PyFoil
eb558659f2d0e1298ebd7b854c3ecdeb1a007bda
[ "BSD-2-Clause" ]
null
null
null
src/main/script/simple.py
stefano-bragaglia/PyFoil
eb558659f2d0e1298ebd7b854c3ecdeb1a007bda
[ "BSD-2-Clause" ]
null
null
null
import datetime from foil.learning import foil from foil.learning import get_closure from foil.learning import get_constants from foil.learning import get_masks from foil.models import Clause from foil.models import Example from foil.models import Literal from foil.models import Program if __name__ == '__main__': ...
38.836364
93
0.546348
import datetime from foil.learning import foil from foil.learning import get_closure from foil.learning import get_constants from foil.learning import get_masks from foil.models import Clause from foil.models import Example from foil.models import Literal from foil.models import Program class Measure: def __init...
169
-7
103
5ac31a8b6e6c6c659d738d0a0694fa092ebb8ca6
118
py
Python
tests/test_alternate.py
gypsyx/pytools
cf2b450881ea6a2c147be3a833f411b199a67e63
[ "MIT" ]
1
2020-01-22T07:58:23.000Z
2020-01-22T07:58:23.000Z
tests/test_alternate.py
gypsyx/pytools
cf2b450881ea6a2c147be3a833f411b199a67e63
[ "MIT" ]
null
null
null
tests/test_alternate.py
gypsyx/pytools
cf2b450881ea6a2c147be3a833f411b199a67e63
[ "MIT" ]
null
null
null
from pytools.alternate import is_alternate
19.666667
42
0.737288
from pytools.alternate import is_alternate def test_alternate(): s = 'ababab' assert is_alternate(s) is True
52
0
23
91517275978a93eac0e935ebcbcd444074086821
1,018
py
Python
summarize/nnsum/nnsum/module/attention/bilinear_softmax_attention.py
AIPHES/live-blog-summarization
a5f899ea07a098e1e0b3ab92cd3d430776e6412a
[ "Apache-2.0" ]
2
2019-01-17T17:43:09.000Z
2019-01-17T17:50:38.000Z
summarize/nnsum/nnsum/module/attention/bilinear_softmax_attention.py
AIPHES/live-blog-summarization
a5f899ea07a098e1e0b3ab92cd3d430776e6412a
[ "Apache-2.0" ]
null
null
null
summarize/nnsum/nnsum/module/attention/bilinear_softmax_attention.py
AIPHES/live-blog-summarization
a5f899ea07a098e1e0b3ab92cd3d430776e6412a
[ "Apache-2.0" ]
1
2021-09-19T08:29:08.000Z
2021-09-19T08:29:08.000Z
import torch import torch.nn as nn import torch.nn.functional as F
31.8125
76
0.609037
import torch import torch.nn as nn import torch.nn.functional as F class BiLinearSoftmaxAttention(nn.Module): def __init__(self): super(BiLinearSoftmaxAttention, self).__init__() def forward(self, context, query, length): raw_scores = torch.bmm(query, context.permute(0, 2, 1)) for b, ...
853
21
76
d29025376156cdce509093d3eab61747ffd84fb5
1,517
py
Python
vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.4/ext/nokogiri/tmp/x86_64-apple-darwin19/ports/libxml2/2.9.9/libxml2-2.9.9/python/tests/compareNodes.py
Burton-David/Jalpc
5f22fbc245b0bb18220d3a61c3a5d20557e64288
[ "MIT" ]
null
null
null
vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.4/ext/nokogiri/tmp/x86_64-apple-darwin19/ports/libxml2/2.9.9/libxml2-2.9.9/python/tests/compareNodes.py
Burton-David/Jalpc
5f22fbc245b0bb18220d3a61c3a5d20557e64288
[ "MIT" ]
null
null
null
vendor/bundle/ruby/2.6.0/gems/nokogiri-1.10.4/ext/nokogiri/tmp/x86_64-apple-darwin19/ports/libxml2/2.9.9/libxml2-2.9.9/python/tests/compareNodes.py
Burton-David/Jalpc
5f22fbc245b0bb18220d3a61c3a5d20557e64288
[ "MIT" ]
1
2019-03-27T16:24:43.000Z
2019-03-27T16:24:43.000Z
#!/usr/bin/python -u import sys import libxml2 # Memory debug specific libxml2.debugMemory(1) # # Testing XML Node comparison and Node hash-value # doc = libxml2.parseDoc("""<root><foo/></root>""") root = doc.getRootElement() # Create two different objects which point to foo foonode1 = root.children foonode2 = root...
29.173077
83
0.699407
#!/usr/bin/python -u import sys import libxml2 # Memory debug specific libxml2.debugMemory(1) # # Testing XML Node comparison and Node hash-value # doc = libxml2.parseDoc("""<root><foo/></root>""") root = doc.getRootElement() # Create two different objects which point to foo foonode1 = root.children foonode2 = root...
0
0
0
03826264e1311ce093b25205b8efba2aafaadf06
271
py
Python
spectroscope/model/notification.py
neukind/ethmonitor
42828a9b2811d97b3c134244b905353a7bf42660
[ "Apache-2.0" ]
6
2021-01-29T02:28:44.000Z
2021-02-17T14:08:14.000Z
spectroscope/model/notification.py
neukind/ethmonitor
42828a9b2811d97b3c134244b905353a7bf42660
[ "Apache-2.0" ]
3
2021-07-26T10:03:12.000Z
2021-07-26T11:48:47.000Z
spectroscope/model/notification.py
neukind/ethmonitor
42828a9b2811d97b3c134244b905353a7bf42660
[ "Apache-2.0" ]
3
2021-04-19T09:34:11.000Z
2021-04-22T06:23:39.000Z
from pydantic import BaseModel from spectroscope.model import Action
19.357143
51
0.763838
from pydantic import BaseModel from spectroscope.model import Action class Notification(BaseModel): pass class Notify(Action): notification: Notification def __init__(self, notification: Notification): super().__init__(notification=notification)
78
76
46
c46e670199762ddc0146f1fc9b8fc422a5cc8f38
780
py
Python
Random Problems/Encryption/solution.py
matheuscordeiro/HackerRank
003ab87fdfa9e7c0535972abd06caebb1165423f
[ "MIT" ]
null
null
null
Random Problems/Encryption/solution.py
matheuscordeiro/HackerRank
003ab87fdfa9e7c0535972abd06caebb1165423f
[ "MIT" ]
null
null
null
Random Problems/Encryption/solution.py
matheuscordeiro/HackerRank
003ab87fdfa9e7c0535972abd06caebb1165423f
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 import math # Complete the encryption function below. if __name__ == '__main__': fptr = open(os.environ['OUTPUT_PATH'], 'w') s = input() result = encryption(s) fptr.write(result + '\n') fptr.close()
20
67
0.620513
#!/usr/local/bin/python3 import math # Complete the encryption function below. def encryption(s): s_no_spaces = '' size_s = 0 # Instead the code below, we can use len(s) and s.replace(' ', '') for value in s: if s: s_no_spaces = f'{s_no_spaces}{s}' size_s += 1 sqrt = math.sqrt(size_s) rows = int(sqrt)...
511
0
22
308a75447dc6e71a90797a9724a052f9c802dddf
2,477
py
Python
server/coronachat/storage/tests/test_api.py
dballesteros7/coronachat
9dc94976a763fdcafb4c83171b1dbdeb39b7b103
[ "MIT" ]
2
2020-03-30T21:58:21.000Z
2022-01-09T16:30:52.000Z
server/coronachat/storage/tests/test_api.py
dballesteros7/coronachat
9dc94976a763fdcafb4c83171b1dbdeb39b7b103
[ "MIT" ]
41
2020-03-27T23:44:36.000Z
2022-02-27T02:00:48.000Z
server/coronachat/storage/tests/test_api.py
dballesteros7/coronachat
9dc94976a763fdcafb4c83171b1dbdeb39b7b103
[ "MIT" ]
null
null
null
import unittest from coronachat.storage.api import GENERIC_ERROR_MSG, NO_OPTION_FOUND_MSG, MessageReader from coronachat.storage.schema import TopLevelMessage, TopLevelOption _TEST_HEADER_CONTENT = """\ Welcome to your local government bot Get information and guidance from use regarding the current outbreak of coron...
29.843373
88
0.683084
import unittest from coronachat.storage.api import GENERIC_ERROR_MSG, NO_OPTION_FOUND_MSG, MessageReader from coronachat.storage.schema import TopLevelMessage, TopLevelOption _TEST_HEADER_CONTENT = """\ Welcome to your local government bot Get information and guidance from use regarding the current outbreak of coron...
1,724
0
115
3bbbff1f66959ae72a9f42b523681a3b6732edd6
544
py
Python
FastApi/sima/src/utils/passwd.py
parker-pu/SiMa
58353d79c99c0ac05d27960b57705ac3b94f528d
[ "MIT" ]
2
2020-12-11T05:46:36.000Z
2020-12-15T07:47:59.000Z
FastApi/sima/src/utils/passwd.py
parker-pu/SiMa
58353d79c99c0ac05d27960b57705ac3b94f528d
[ "MIT" ]
null
null
null
FastApi/sima/src/utils/passwd.py
parker-pu/SiMa
58353d79c99c0ac05d27960b57705ac3b94f528d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from passlib.context import CryptContext pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") def verify_password(plain_password, hashed_password): """ Is the hash of the two values equal :param plain_password: plaintext :param hashed_password: hash password :retu...
24.727273
65
0.709559
# -*- coding: utf-8 -*- from passlib.context import CryptContext pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") def verify_password(plain_password, hashed_password): """ Is the hash of the two values equal :param plain_password: plaintext :param hashed_password: hash password :retu...
0
0
0
2fe627536463a1be182b8336c14c473483131472
4,925
py
Python
tests/provider/dwd/radar/test_api_current.py
bh-chaker/wetterdienst
b0d51bb4c7392eb47834e4978e26882d74b22e35
[ "MIT" ]
155
2020-07-03T05:09:22.000Z
2022-03-28T06:57:39.000Z
tests/provider/dwd/radar/test_api_current.py
bh-chaker/wetterdienst
b0d51bb4c7392eb47834e4978e26882d74b22e35
[ "MIT" ]
453
2020-07-02T21:21:52.000Z
2022-03-31T21:35:36.000Z
tests/provider/dwd/radar/test_api_current.py
bh-chaker/wetterdienst
b0d51bb4c7392eb47834e4978e26882d74b22e35
[ "MIT" ]
21
2020-09-07T12:13:27.000Z
2022-03-26T16:26:09.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2018-2021, earthobservations developers. # Distributed under the MIT License. See LICENSE for more info. import h5py import pytest from wetterdienst.provider.dwd.radar import ( DwdRadarDataFormat, DwdRadarDataSubset, DwdRadarDate, DwdRadarParameter, DwdRadarP...
27.361111
107
0.674721
# -*- coding: utf-8 -*- # Copyright (c) 2018-2021, earthobservations developers. # Distributed under the MIT License. See LICENSE for more info. import h5py import pytest from wetterdienst.provider.dwd.radar import ( DwdRadarDataFormat, DwdRadarDataSubset, DwdRadarDate, DwdRadarParameter, DwdRadarP...
0
0
0
4376084a1d2e1f6edcd3bfc78edf432ca44e4aed
1,116
py
Python
validate.py
abrox/ruuvi
28e5f7bcce52f4a9541f0b15e11215e7b7526d59
[ "MIT" ]
null
null
null
validate.py
abrox/ruuvi
28e5f7bcce52f4a9541f0b15e11215e7b7526d59
[ "MIT" ]
null
null
null
validate.py
abrox/ruuvi
28e5f7bcce52f4a9541f0b15e11215e7b7526d59
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import jsonschema from jsonschema import validate from os.path import join, dirname, abspath import jsonref def _load_json_schema(filename): """ Loads the given schema file """ # relative_path = join('', filename) relative_path = filename absolute_path = join(dirname(__file__),...
29.368421
63
0.670251
#!/usr/bin/env python3 import jsonschema from jsonschema import validate from os.path import join, dirname, abspath import jsonref def _load_json_schema(filename): """ Loads the given schema file """ # relative_path = join('', filename) relative_path = filename absolute_path = join(dirname(__file__),...
0
0
0
c69659e8844f3dec21dcc232e1d0f3f8bba2efc1
263
py
Python
nmigen_boards/ice40_up5k_b_evn.py
lethalbit/nmigen-boards
aaf18252e457ff95257137da2a629820c0ff2bfa
[ "BSD-2-Clause" ]
11
2021-12-10T12:23:29.000Z
2022-03-13T08:40:20.000Z
nmigen_boards/ice40_up5k_b_evn.py
lethalbit/nmigen-boards
aaf18252e457ff95257137da2a629820c0ff2bfa
[ "BSD-2-Clause" ]
12
2021-12-11T18:51:29.000Z
2022-03-12T05:08:52.000Z
nmigen_boards/ice40_up5k_b_evn.py
lethalbit/nmigen-boards
aaf18252e457ff95257137da2a629820c0ff2bfa
[ "BSD-2-Clause" ]
7
2021-12-12T07:20:21.000Z
2022-03-06T06:20:55.000Z
from amaranth_boards.ice40_up5k_b_evn import * from amaranth_boards.ice40_up5k_b_evn import __all__ import warnings warnings.warn("instead of nmigen_boards.ice40_up5k_b_evn, use amaranth_boards.ice40_up5k_b_evn", DeprecationWarning, stacklevel=2)
32.875
96
0.821293
from amaranth_boards.ice40_up5k_b_evn import * from amaranth_boards.ice40_up5k_b_evn import __all__ import warnings warnings.warn("instead of nmigen_boards.ice40_up5k_b_evn, use amaranth_boards.ice40_up5k_b_evn", DeprecationWarning, stacklevel=2)
0
0
0
2f8f2b68775ed3bcea2c82fb905ab1dd726fa9c7
24,979
py
Python
python/libs/virtual_classes.py
neilberard/AutoRig
cdd8717483fae418a9dab2b530573f4b804632fe
[ "MIT" ]
null
null
null
python/libs/virtual_classes.py
neilberard/AutoRig
cdd8717483fae418a9dab2b530573f4b804632fe
[ "MIT" ]
null
null
null
python/libs/virtual_classes.py
neilberard/AutoRig
cdd8717483fae418a9dab2b530573f4b804632fe
[ "MIT" ]
null
null
null
import pymel.all as pymel import maya.cmds as cmds from python.libs import naming_utils from python.libs import joint_utils from python.libs import shapes import logging log = logging.getLogger(__name__) log.setLevel(logging.DEBUG) def attach_class(node, net): """ Adds a string attribute to a PyNode set to t...
32.910408
154
0.576724
import pymel.all as pymel import maya.cmds as cmds from python.libs import naming_utils from python.libs import joint_utils from python.libs import shapes import logging log = logging.getLogger(__name__) log.setLevel(logging.DEBUG) def attach_class(node, net): """ Adds a string attribute to a PyNode set to t...
8,793
2,635
1,300
88949878ea8222d8cce9f9895c96324ac6bd06c7
1,320
py
Python
newbeginning/network/test-analysis/medianvariance.py
arnavkapoor/fsmresults
96daf7e86ed58fea2d7cbbe9364a866c7a548a3e
[ "Apache-2.0" ]
null
null
null
newbeginning/network/test-analysis/medianvariance.py
arnavkapoor/fsmresults
96daf7e86ed58fea2d7cbbe9364a866c7a548a3e
[ "Apache-2.0" ]
null
null
null
newbeginning/network/test-analysis/medianvariance.py
arnavkapoor/fsmresults
96daf7e86ed58fea2d7cbbe9364a866c7a548a3e
[ "Apache-2.0" ]
null
null
null
# import plotly.plotly as py # import plotly.graph_objs as go # import plotly.figure_factory as FF import csv import math import numpy as np import pandas as pd import matplotlib as mplt import itertools import matplotlib.pyplot as plt neededfiles = ['aim.fsm','battlefield2.fsm','counterstrike-source.fsm','halflife2-d...
31.428571
185
0.655303
# import plotly.plotly as py # import plotly.graph_objs as go # import plotly.figure_factory as FF import csv import math import numpy as np import pandas as pd import matplotlib as mplt import itertools import matplotlib.pyplot as plt neededfiles = ['aim.fsm','battlefield2.fsm','counterstrike-source.fsm','halflife2-d...
0
0
0
fc7b59b60500fbdc8842b844fa39aad4bbf51587
6,561
py
Python
scripts/3d_pointing_detection.py
Tacha-S/ros_3d_pointing_detection
6fdaf663a7da90c9e17227584fb244455b746606
[ "MIT" ]
null
null
null
scripts/3d_pointing_detection.py
Tacha-S/ros_3d_pointing_detection
6fdaf663a7da90c9e17227584fb244455b746606
[ "MIT" ]
null
null
null
scripts/3d_pointing_detection.py
Tacha-S/ros_3d_pointing_detection
6fdaf663a7da90c9e17227584fb244455b746606
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from geometry_msgs.msg import Pose from ros_3d_pointing_detection.calc_3d_dist import point_3d_line_distance, point_plane_distance from tfpose_ros.msg import Persons from sensor_msgs.msg import PointCloud2, CameraInfo from sensor_msgs import point_cloud2 import numpy as np...
40.006098
125
0.624295
#!/usr/bin/env python # -*- coding: utf-8 -*- from geometry_msgs.msg import Pose from ros_3d_pointing_detection.calc_3d_dist import point_3d_line_distance, point_plane_distance from tfpose_ros.msg import Persons from sensor_msgs.msg import PointCloud2, CameraInfo from sensor_msgs import point_cloud2 import numpy as np...
3,594
2,342
46
3143c4a4d4be088c0dc8c9b335bc7e4b0d656fee
2,528
py
Python
zenora/impl/factory.py
notandrewdev/zenora
b88d2db2fc03c4475ca3f0cbbd70338cecf5a1da
[ "MIT" ]
1
2021-09-24T22:48:33.000Z
2021-09-24T22:48:33.000Z
zenora/impl/factory.py
notandrewdev/zenora
b88d2db2fc03c4475ca3f0cbbd70338cecf5a1da
[ "MIT" ]
null
null
null
zenora/impl/factory.py
notandrewdev/zenora
b88d2db2fc03c4475ca3f0cbbd70338cecf5a1da
[ "MIT" ]
null
null
null
# Zenora, a modern Python API wrapper for the Discord REST API # # Copyright (c) 2020 K.M Ahnaf Zamil # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without ...
33.706667
80
0.686709
# Zenora, a modern Python API wrapper for the Discord REST API # # Copyright (c) 2020 K.M Ahnaf Zamil # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without ...
0
1,162
23
c1bd92bb03d22a5801d1fa69ec73029da13585e5
6,952
py
Python
spidermon/contrib/scrapy/extensions.py
tcurvelo/spidermon
4190273461f0ad9a97f1de3ea75d331f0c4d2b36
[ "BSD-3-Clause" ]
null
null
null
spidermon/contrib/scrapy/extensions.py
tcurvelo/spidermon
4190273461f0ad9a97f1de3ea75d331f0c4d2b36
[ "BSD-3-Clause" ]
null
null
null
spidermon/contrib/scrapy/extensions.py
tcurvelo/spidermon
4190273461f0ad9a97f1de3ea75d331f0c4d2b36
[ "BSD-3-Clause" ]
null
null
null
from scrapy import signals from scrapy.exceptions import NotConfigured from scrapy.utils.misc import load_object from twisted.internet.task import LoopingCall from spidermon import MonitorSuite from spidermon.contrib.scrapy.runners import SpiderMonitorRunner from spidermon.python import factory from spidermon.python.m...
37.578378
85
0.661392
from scrapy import signals from scrapy.exceptions import NotConfigured from scrapy.utils.misc import load_object from twisted.internet.task import LoopingCall from spidermon import MonitorSuite from spidermon.contrib.scrapy.runners import SpiderMonitorRunner from spidermon.python import factory from spidermon.python.m...
6,144
362
23
ed4cfd079378bcce20665eaa6c2773019151090a
3,409
py
Python
tests/unit/sagemaker/cli/compatibility/v2/modifiers/test_session_image_uri.py
LastRemote/sagemaker-python-sdk
fddf29d9e4383cd3f939253eef47ee79a464dd37
[ "Apache-2.0" ]
1,690
2017-11-29T20:13:37.000Z
2022-03-31T12:58:11.000Z
tests/unit/sagemaker/cli/compatibility/v2/modifiers/test_session_image_uri.py
LastRemote/sagemaker-python-sdk
fddf29d9e4383cd3f939253eef47ee79a464dd37
[ "Apache-2.0" ]
2,762
2017-12-04T05:18:03.000Z
2022-03-31T23:40:11.000Z
tests/unit/sagemaker/cli/compatibility/v2/modifiers/test_session_image_uri.py
LastRemote/sagemaker-python-sdk
fddf29d9e4383cd3f939253eef47ee79a464dd37
[ "Apache-2.0" ]
961
2017-11-30T16:44:03.000Z
2022-03-30T23:12:09.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompan...
35.884211
86
0.775887
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompan...
2,120
0
184
1c6764d99bda65c0edd8edcc41f93418f856848f
1,145
py
Python
backend/appengine/routes/students/rest.py
SamaraCardoso27/eMakeup
02c3099aca85b5f54214c3a32590e80eb61621e7
[ "MIT" ]
null
null
null
backend/appengine/routes/students/rest.py
SamaraCardoso27/eMakeup
02c3099aca85b5f54214c3a32590e80eb61621e7
[ "MIT" ]
null
null
null
backend/appengine/routes/students/rest.py
SamaraCardoso27/eMakeup
02c3099aca85b5f54214c3a32590e80eb61621e7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from student.student_model import StudentForm, Course, Student from distutils import log from gaecookie.decorator import no_csrf from gaepermission.decorator import login_not_required from tekton.gae.middleware.json_middleware import JsonU...
29.358974
70
0.755459
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from student.student_model import StudentForm, Course, Student from distutils import log from gaecookie.decorator import no_csrf from gaepermission.decorator import login_not_required from tekton.gae.middleware.json_middleware import JsonU...
615
0
66
23bf72dc1052caf9090ab8ec52fd5b254a1f6fcf
2,511
py
Python
shared/custom_layers/residual_unit.py
dbulhosa/ILSVRC
c87aaa99680b5d57617c365f45552c94fe34c120
[ "MIT" ]
1
2020-04-28T00:41:55.000Z
2020-04-28T00:41:55.000Z
shared/custom_layers/residual_unit.py
dbulhosa/ILSVRC
c87aaa99680b5d57617c365f45552c94fe34c120
[ "MIT" ]
2
2020-04-27T07:53:35.000Z
2020-05-19T05:49:57.000Z
shared/custom_layers/residual_unit.py
dbulhosa/atari-rl
8e91b553300cc72136cf890f0a568b373f061104
[ "MIT" ]
1
2020-04-28T00:41:56.000Z
2020-04-28T00:41:56.000Z
import keras.layers as lyr def residual_unit(input, size, filters, downsample, kernel_initializer, bias_initializer, kernel_regularizer, bias_regularizer): """ Residual unit using pre-activation as described in: https://arxiv.org/pdf/1603.05027v2.pdf Note that we use 1x1 convolution...
41.85
100
0.687376
import keras.layers as lyr def residual_unit(input, size, filters, downsample, kernel_initializer, bias_initializer, kernel_regularizer, bias_regularizer): """ Residual unit using pre-activation as described in: https://arxiv.org/pdf/1603.05027v2.pdf Note that we use 1x1 convolution...
370
0
27
0a79ef4fc630bafbc85f4d0253758f76aa8e8d8a
16,200
py
Python
test/models/test_pytorch.py
adriaat/quantnn
5248c240b931fa113120e3564605638095e5278f
[ "MIT" ]
null
null
null
test/models/test_pytorch.py
adriaat/quantnn
5248c240b931fa113120e3564605638095e5278f
[ "MIT" ]
3
2022-01-11T08:41:03.000Z
2022-02-11T14:25:09.000Z
test/models/test_pytorch.py
adriaat/quantnn
5248c240b931fa113120e3564605638095e5278f
[ "MIT" ]
5
2020-12-11T03:18:32.000Z
2022-02-14T10:32:09.000Z
""" Tests for the PyTorch NN backend. """ import torch from torch import nn import numpy as np from quantnn import set_default_backend from quantnn.qrnn import QRNN from quantnn.drnn import DRNN, _to_categorical from quantnn.mrnn import Quantiles, Density, Mean, MRNN from quantnn.models.pytorch import QuantileLoss, C...
29.032258
85
0.514321
""" Tests for the PyTorch NN backend. """ import torch from torch import nn import numpy as np from quantnn import set_default_backend from quantnn.qrnn import QRNN from quantnn.drnn import DRNN, _to_categorical from quantnn.mrnn import Quantiles, Density, Mean, MRNN from quantnn.models.pytorch import QuantileLoss, C...
2,387
96
528
32821109522c40bd1a02449a60d21db007e94187
96
py
Python
venv/lib/python3.8/site-packages/pip/_internal/commands/wheel.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/pip/_internal/commands/wheel.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/pip/_internal/commands/wheel.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/c0/a1/92/92cb988e38603986bf8c3eae95a2a93d7694ccf8b2cdf44d353e033a2a
96
96
0.895833
/home/runner/.cache/pip/pool/c0/a1/92/92cb988e38603986bf8c3eae95a2a93d7694ccf8b2cdf44d353e033a2a
0
0
0
c2f0e9d7331b991b80a07c7ef1b8d1683d218eff
3,383
py
Python
src/core/context_processors.py
compressore/moc
8e05e3e60d2d2c7534e0c659b6ed0743e9189f6b
[ "MIT" ]
null
null
null
src/core/context_processors.py
compressore/moc
8e05e3e60d2d2c7534e0c659b6ed0743e9189f6b
[ "MIT" ]
null
null
null
src/core/context_processors.py
compressore/moc
8e05e3e60d2d2c7534e0c659b6ed0743e9189f6b
[ "MIT" ]
null
null
null
from django.utils import timezone import pytz from core.models import RecordRelationship, Project, ProjectDesign, Work, WorkSprint, Notification from django.conf import settings
39.8
134
0.651493
from django.utils import timezone import pytz from core.models import RecordRelationship, Project, ProjectDesign, Work, WorkSprint, Notification from django.conf import settings def site(request): permissions = None open = None sprints = None notifications = None system_name_singular = "city" ...
3,181
0
23
a5bc516d0f360ab9ea6a27e217851ad013b853e5
1,142
py
Python
extras/simple.py
bhavinthakar/Doc2Web
c8e772bab9ee9158728548f87daa4433847d1941
[ "MIT" ]
null
null
null
extras/simple.py
bhavinthakar/Doc2Web
c8e772bab9ee9158728548f87daa4433847d1941
[ "MIT" ]
null
null
null
extras/simple.py
bhavinthakar/Doc2Web
c8e772bab9ee9158728548f87daa4433847d1941
[ "MIT" ]
null
null
null
import m5 from m5.objects import * # Create a system system = System() print(system) # Setup a clock domain system.clk_domain=SrcClockDomain() system.clk_domain.clock = '1GHz' system.clk_domain.voltage_domain=VoltageDomain() # Setup memory mode system.mem_mode='timing' system.mem_ranges= [AddrRange('512MB')] # Crea...
23.306122
80
0.781086
import m5 from m5.objects import * # Create a system system = System() print(system) # Setup a clock domain system.clk_domain=SrcClockDomain() system.clk_domain.clock = '1GHz' system.clk_domain.voltage_domain=VoltageDomain() # Setup memory mode system.mem_mode='timing' system.mem_ranges= [AddrRange('512MB')] # Crea...
0
0
0
098f582579cf6ca68568c151f9800f4996a2b0ac
2,720
py
Python
app/models.py
lpe234/bms
20a2242c9c5e52b099c436eac7addfede57c3a6e
[ "MIT" ]
1
2019-05-01T08:11:59.000Z
2019-05-01T08:11:59.000Z
app/models.py
lpe234/bms
20a2242c9c5e52b099c436eac7addfede57c3a6e
[ "MIT" ]
null
null
null
app/models.py
lpe234/bms
20a2242c9c5e52b099c436eac7addfede57c3a6e
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from flask_sqlalchemy import SQLAlchemy import sqlalchemy from sqlalchemy.ext.declarative import declared_attr from app import bms_app from app.utils import password_encrypt, password_check __author__ = 'lpe234' db = SQLAlchemy(bms_app)
28.041237
117
0.673897
# -*- coding: UTF-8 -*- from flask_sqlalchemy import SQLAlchemy import sqlalchemy from sqlalchemy.ext.declarative import declared_attr from app import bms_app from app.utils import password_encrypt, password_check __author__ = 'lpe234' db = SQLAlchemy(bms_app) class IDModelMixin(object): id = db.Column(db.I...
699
1,744
92
234a4a20bf9e718a162a6d6036e897a3e1733925
147
py
Python
tardis/rest/app/database.py
maxfischer2781/tardis
a83ba0a02d2f153a8ab95b84ec78bc6ababa57a5
[ "MIT" ]
4
2018-05-22T13:22:06.000Z
2019-03-26T15:32:57.000Z
tardis/rest/app/database.py
maxfischer2781/tardis
a83ba0a02d2f153a8ab95b84ec78bc6ababa57a5
[ "MIT" ]
50
2018-05-18T11:46:39.000Z
2019-04-26T07:29:45.000Z
tardis/rest/app/database.py
maxfischer2781/tardis
a83ba0a02d2f153a8ab95b84ec78bc6ababa57a5
[ "MIT" ]
2
2018-12-12T13:15:59.000Z
2018-12-17T08:18:15.000Z
from ...plugins.sqliteregistry import SqliteRegistry
21
52
0.77551
from ...plugins.sqliteregistry import SqliteRegistry def get_sql_registry(): sql_registry = SqliteRegistry() return lambda: sql_registry
70
0
23
bd731915d7f0dee07d213b30dfcc9e9bb1ace80a
130
py
Python
intro-neural-networks/gradient-descent/guille.py
endersonO/IA-python-nano-degree
b156293f15b212596ccaa381aa8d254c6895f458
[ "MIT" ]
null
null
null
intro-neural-networks/gradient-descent/guille.py
endersonO/IA-python-nano-degree
b156293f15b212596ccaa381aa8d254c6895f458
[ "MIT" ]
3
2021-05-21T16:02:16.000Z
2022-02-10T00:25:48.000Z
intro-neural-networks/gradient-descent/guille.py
endersonC/IA-python-nano-degree
b156293f15b212596ccaa381aa8d254c6895f458
[ "MIT" ]
null
null
null
import numpy as np w1 = input("W1 :") w2 = input("W2 :") b = input("b :") y=w1*0.4+w2*0.6+b yy=1/(1+np.exp(-y)) print(y) print(yy)
16.25
19
0.561538
import numpy as np w1 = input("W1 :") w2 = input("W2 :") b = input("b :") y=w1*0.4+w2*0.6+b yy=1/(1+np.exp(-y)) print(y) print(yy)
0
0
0
a42482c44d1d7aeb5df6a64ed954fb34b471ab90
13,561
py
Python
AMI/NRM_simulator/pyami/simcode/utils.py
AntoineDarveau/jwst-mtl
a849910e14194804a660b3897dd8bdb25b0daf46
[ "MIT" ]
1
2022-02-04T13:59:18.000Z
2022-02-04T13:59:18.000Z
AMI/NRM_simulator/pyami/simcode/utils.py
AntoineDarveau/jwst-mtl
a849910e14194804a660b3897dd8bdb25b0daf46
[ "MIT" ]
12
2020-09-17T20:14:03.000Z
2022-03-21T21:16:43.000Z
AMI/NRM_simulator/pyami/simcode/utils.py
AntoineDarveau/jwst-mtl
a849910e14194804a660b3897dd8bdb25b0daf46
[ "MIT" ]
1
2020-09-18T15:25:52.000Z
2020-09-18T15:25:52.000Z
#!/usr/bin/env python # original code by Thatte, Anand, Sahlmann, Greenbaum # utility routines and constants for AMI image simulations reorganized by Sahlmann, Anand 3/2016 # anand@stsci.edu 18 Mar 2016 """ """ import numpy as np import sys, time from astropy.io import fits import os # global variables global readno...
42.510972
157
0.570091
#!/usr/bin/env python # original code by Thatte, Anand, Sahlmann, Greenbaum # utility routines and constants for AMI image simulations reorganized by Sahlmann, Anand 3/2016 # anand@stsci.edu 18 Mar 2016 """ """ import numpy as np import sys, time from astropy.io import fits import os # global variables global readno...
1,699
0
88
3015c1572611e0e4ec2a94a9c9a1ceaa5347af89
429
py
Python
Mundo 3/ex097.py
lucasjurado/Curso-em-Video
1bf6a0a17ecec6be8e06c128f1c1b4aea88164c4
[ "MIT" ]
3
2020-05-19T01:22:35.000Z
2021-02-11T18:59:12.000Z
Mundo 3/ex097.py
lucasjurado/Python
1bf6a0a17ecec6be8e06c128f1c1b4aea88164c4
[ "MIT" ]
null
null
null
Mundo 3/ex097.py
lucasjurado/Python
1bf6a0a17ecec6be8e06c128f1c1b4aea88164c4
[ "MIT" ]
null
null
null
lista = [] lista_par = [] lista_impar = [] while True: n = int(input('Digite um valor: ')) lista.append(n) if n%2 == 0: lista_par.append(n) else: lista_impar.append(n) again = str(input('Quer continuar? [S/N] ')).strip().upper()[0] if again in 'N': break print(f'Lista co...
25.235294
67
0.599068
lista = [] lista_par = [] lista_impar = [] while True: n = int(input('Digite um valor: ')) lista.append(n) if n%2 == 0: lista_par.append(n) else: lista_impar.append(n) again = str(input('Quer continuar? [S/N] ')).strip().upper()[0] if again in 'N': break print(f'Lista co...
0
0
0
443f32108582f6f879690d6ef57c08094c3452d3
868
py
Python
BackEnd/todo/models.py
rickyrose/LasttoDo
05f3f5cf930cb31278bf458bb01220266180bfe8
[ "MIT" ]
null
null
null
BackEnd/todo/models.py
rickyrose/LasttoDo
05f3f5cf930cb31278bf458bb01220266180bfe8
[ "MIT" ]
null
null
null
BackEnd/todo/models.py
rickyrose/LasttoDo
05f3f5cf930cb31278bf458bb01220266180bfe8
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User class AbstractTimeStamp(models.Model): """Abstract TimeStamp Model Inherit: Model Fields: created_at : DateTimeField (UnEditable) updated_at : DateTimeField (Editable) """ created_at = models.DateTime...
23.459459
60
0.660138
from django.db import models from django.contrib.auth.models import User class AbstractTimeStamp(models.Model): """Abstract TimeStamp Model Inherit: Model Fields: created_at : DateTimeField (UnEditable) updated_at : DateTimeField (Editable) """ created_at = models.DateTime...
22
14
54
99e1901c951083f897e7d698fdca9ce52895b6c4
4,279
py
Python
steps/regions.py
MaximKsh/Sound-of-Pixels
d36ad4ba22b7148269647af0298948969db0b981
[ "MIT" ]
3
2021-09-03T06:30:09.000Z
2021-09-05T09:02:26.000Z
steps/regions.py
MaximKsh/Sound-of-Pixels
d36ad4ba22b7148269647af0298948969db0b981
[ "MIT" ]
2
2020-08-01T13:52:31.000Z
2021-03-07T11:01:46.000Z
steps/regions.py
MaximKsh/Sound-of-Pixels
d36ad4ba22b7148269647af0298948969db0b981
[ "MIT" ]
null
null
null
import os import torch from imageio import imwrite from scipy.io import wavfile from tqdm import tqdm import numpy as np from dataset.music import MUSICMixDataset from helpers.utils import get_ctx, recover_rgb, makedirs, istft_reconstruction, magnitude2heatmap from steps.common import build_model, unwarp_log_scale, ...
39.256881
115
0.619771
import os import torch from imageio import imwrite from scipy.io import wavfile from tqdm import tqdm import numpy as np from dataset.music import MUSICMixDataset from helpers.utils import get_ctx, recover_rgb, makedirs, istft_reconstruction, magnitude2heatmap from steps.common import build_model, unwarp_log_scale, ...
3,848
0
46
b8d029f5bc6161440b8026698d334293fd413a64
237
py
Python
function/recursion/pattern_01_01n.py
nayanapardhekar/Python
55ea0cc1dd69192b25cb71358cd03cc2ce13be0a
[ "MIT" ]
37
2019-04-03T07:19:57.000Z
2022-01-09T06:18:41.000Z
function/recursion/pattern_01_01n.py
nayanapardhekar/Python
55ea0cc1dd69192b25cb71358cd03cc2ce13be0a
[ "MIT" ]
16
2020-08-11T08:09:42.000Z
2021-10-30T17:40:48.000Z
function/recursion/pattern_01_01n.py
nayanapardhekar/Python
55ea0cc1dd69192b25cb71358cd03cc2ce13be0a
[ "MIT" ]
130
2019-10-02T14:40:20.000Z
2022-01-26T17:38:26.000Z
n=int(input('enter a number: ')) f(n) ''' output: enter a number: 6 1 2 3 4 5 6 1 2 3 4 5 1 2 3 4 1 2 3 1 2 1 '''
9.875
32
0.485232
def f(n): if n==0: return def g(t): if t==0: return g(t-1) print(t,end=' ') g(n) print() f(n-1) n=int(input('enter a number: ')) f(n) ''' output: enter a number: 6 1 2 3 4 5 6 1 2 3 4 5 1 2 3 4 1 2 3 1 2 1 '''
95
0
22
0546f3edaa9a5f95688e2a8586c42014cf316be2
4,085
py
Python
py/s3_intelligent_tiering.py
bluecloudreddot/s3-intelligent-tiering
08b7b49114522ac055f388fe14588f82df2ccedf
[ "MIT" ]
2
2019-02-13T17:07:09.000Z
2020-05-03T03:18:13.000Z
py/s3_intelligent_tiering.py
bluecloudreddot/s3-intelligent-tiering
08b7b49114522ac055f388fe14588f82df2ccedf
[ "MIT" ]
null
null
null
py/s3_intelligent_tiering.py
bluecloudreddot/s3-intelligent-tiering
08b7b49114522ac055f388fe14588f82df2ccedf
[ "MIT" ]
1
2019-03-12T09:09:24.000Z
2019-03-12T09:09:24.000Z
""" MIT License Copyright (c) 2019 Blue Cloud Red Dot Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publi...
51.708861
154
0.67246
""" MIT License Copyright (c) 2019 Blue Cloud Red Dot Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publi...
0
0
0
a73bbb4e86f50607aba59110d5fab72de671285b
7,665
py
Python
featureRec/movielens/data/preprocess.py
parth-couture-ai/RecommenderSystems
fbf2a748099fc38f1422d121990eb8e62940f25c
[ "MIT" ]
975
2019-03-28T19:47:38.000Z
2022-03-30T06:25:22.000Z
featureRec/movielens/data/preprocess.py
ShunLu91/RecommenderSystems
0a585139de1b49d72511ce5a4a642bd427c1349a
[ "MIT" ]
20
2019-05-06T12:14:31.000Z
2022-03-24T12:31:43.000Z
featureRec/movielens/data/preprocess.py
ShunLu91/RecommenderSystems
0a585139de1b49d72511ce5a4a642bd427c1349a
[ "MIT" ]
274
2019-04-13T11:06:06.000Z
2022-03-30T06:25:21.000Z
dict = {} user_count = 6040 gender = {} gender['M'] = 1 gender['F'] = 2 dict[1] = "Gender-male" dict[2] = "Gender-female" age = {} age['1'] = 3 age['18'] = 4 age['25'] = 5 age['35'] = 6 age['45'] = 7 age['50'] = 8 age['56'] = 9 dict[3] = "Age-under 18" dict[4] = "Age-18-24" dict[5] = "Age-25-34" dict[6] = "Age-35-...
21.837607
67
0.641748
dict = {} user_count = 6040 gender = {} gender['M'] = 1 gender['F'] = 2 dict[1] = "Gender-male" dict[2] = "Gender-female" age = {} age['1'] = 3 age['18'] = 4 age['25'] = 5 age['35'] = 6 age['45'] = 7 age['50'] = 8 age['56'] = 9 dict[3] = "Age-under 18" dict[4] = "Age-18-24" dict[5] = "Age-25-34" dict[6] = "Age-35-...
0
0
0
f2244993e211d561bad86dbcef92fadb134ea788
2,158
py
Python
syphon/schema/resolvepath.py
ethall/syphon
dd75fd33f3f9164653f24b33c875615dc1d04182
[ "MIT" ]
null
null
null
syphon/schema/resolvepath.py
ethall/syphon
dd75fd33f3f9164653f24b33c875615dc1d04182
[ "MIT" ]
23
2018-01-06T17:59:58.000Z
2019-02-27T15:52:20.000Z
syphon/schema/resolvepath.py
ethall/syphon
dd75fd33f3f9164653f24b33c875615dc1d04182
[ "MIT" ]
1
2019-02-20T17:17:40.000Z
2019-02-20T17:17:40.000Z
"""syphon.schema.resolvepath.py Copyright (c) 2017-2018 Keithley Instruments, LLC. Licensed under MIT (https://github.com/ehall/syphon/blob/master/LICENSE) """ from pandas import DataFrame from sortedcontainers import SortedDict def _normalize(directory: str) -> str: """Make lowercase and replace spaces w...
31.735294
75
0.646432
"""syphon.schema.resolvepath.py Copyright (c) 2017-2018 Keithley Instruments, LLC. Licensed under MIT (https://github.com/ehall/syphon/blob/master/LICENSE) """ from pandas import DataFrame from sortedcontainers import SortedDict def _normalize(directory: str) -> str: """Make lowercase and replace spaces w...
0
0
0
51e613ddfda196d79045aa4d8515248aa5d166f3
2,330
py
Python
project/api/migrations/0057_auto_20210714_2322.py
hlystovea/BBBS
7164ef67615e45d750e965bf958af229b56d49e3
[ "BSD-3-Clause" ]
null
null
null
project/api/migrations/0057_auto_20210714_2322.py
hlystovea/BBBS
7164ef67615e45d750e965bf958af229b56d49e3
[ "BSD-3-Clause" ]
2
2021-06-07T14:06:05.000Z
2021-06-18T16:27:29.000Z
project/api/migrations/0057_auto_20210714_2322.py
hlystovea/BBBS
7164ef67615e45d750e965bf958af229b56d49e3
[ "BSD-3-Clause" ]
2
2021-07-27T20:40:18.000Z
2021-09-12T16:48:19.000Z
# Generated by Django 3.2.3 on 2021-07-14 16:22 from django.db import migrations, models import django.db.models.deletion
38.196721
183
0.590558
# Generated by Django 3.2.3 on 2021-07-14 16:22 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0056_auto_20210714_2045'), ] operations = [ migrations.RemoveField( model_name='catalog'...
0
2,248
23
5d8e3e36a2258f0b2a6784e236142f8901d10da0
350
py
Python
Flask_Server_API/db.py
SwayamDash/News-Feedback-Management-System1
94f191af0771ae4252eb747619a5a7930ccdbbeb
[ "MIT" ]
1
2021-11-16T19:37:22.000Z
2021-11-16T19:37:22.000Z
Flask_Server_API/db.py
SwayamDash/News-Feedback-Management-System
94f191af0771ae4252eb747619a5a7930ccdbbeb
[ "MIT" ]
null
null
null
Flask_Server_API/db.py
SwayamDash/News-Feedback-Management-System
94f191af0771ae4252eb747619a5a7930ccdbbeb
[ "MIT" ]
null
null
null
from flask import Flask from flask_pymongo import pymongo from app import app CONNECTION_STRING = "mongodb+srv://swayam:swayam123@cluster0.wiqoj.mongodb.net/newsfeedbacksystem?retryWrites=true&w=majority" client = pymongo.MongoClient(CONNECTION_STRING) db = client.get_database('newsfeedbacksystem') store = pymongo.coll...
50
126
0.831429
from flask import Flask from flask_pymongo import pymongo from app import app CONNECTION_STRING = "mongodb+srv://swayam:swayam123@cluster0.wiqoj.mongodb.net/newsfeedbacksystem?retryWrites=true&w=majority" client = pymongo.MongoClient(CONNECTION_STRING) db = client.get_database('newsfeedbacksystem') store = pymongo.coll...
0
0
0
4c2a761b765bb318e2b8a214514bc6b78be62b31
21,375
py
Python
twext/enterprise/dal/test/test_record.py
troglodyne/ccs-twistedextensions
1b43cb081ba68ae310140a9e853e041cd6362625
[ "Apache-2.0" ]
23
2016-08-14T07:20:27.000Z
2021-11-08T09:47:45.000Z
twext/enterprise/dal/test/test_record.py
DalavanCloud/ccs-twistedextensions
2c4046df88873dcf33fba7840ed90e4238dcbec7
[ "Apache-2.0" ]
2
2016-12-15T17:51:49.000Z
2019-05-12T15:59:03.000Z
twext/enterprise/dal/test/test_record.py
DalavanCloud/ccs-twistedextensions
2c4046df88873dcf33fba7840ed90e4238dcbec7
[ "Apache-2.0" ]
20
2016-08-17T06:51:00.000Z
2022-03-26T11:55:56.000Z
## # Copyright (c) 2012-2017 Apple Inc. 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 l...
34.036624
101
0.568561
## # Copyright (c) 2012-2017 Apple Inc. 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 l...
212
0
120
1b2c4d7cf83e49c4e21c7430538669298e5db5a5
3,518
py
Python
cloudify_gcp/compute/tests/test_security_group.py
cloudify-cosmo/cloudify-gcp-plugin
c70faee0555070f7fc67f0001395eaafb681b23c
[ "Apache-2.0" ]
4
2016-10-24T17:42:07.000Z
2020-05-31T00:34:07.000Z
cloudify_gcp/compute/tests/test_security_group.py
cloudify-cosmo/cloudify-gcp-plugin
c70faee0555070f7fc67f0001395eaafb681b23c
[ "Apache-2.0" ]
35
2015-04-30T20:14:01.000Z
2022-02-03T21:35:54.000Z
cloudify_gcp/compute/tests/test_security_group.py
cloudify-cosmo/cloudify-gcp-plugin
c70faee0555070f7fc67f0001395eaafb681b23c
[ "Apache-2.0" ]
13
2015-04-17T16:42:03.000Z
2021-06-24T04:12:14.000Z
# -*- coding: utf-8 -*- ######## # Copyright (c) 2016-2020 Cloudify Platform Ltd. 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...
37.031579
75
0.517339
# -*- coding: utf-8 -*- ######## # Copyright (c) 2016-2020 Cloudify Platform Ltd. 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...
2,461
15
103
d24942e508c1186e62ae2a1e3d1a60df2f0dca2e
12,218
py
Python
tola/test/test_pipeline.py
mercycorps/toladata
4d5f9b45905a81af9981b586690e020d5b3bfc60
[ "Apache-2.0" ]
null
null
null
tola/test/test_pipeline.py
mercycorps/toladata
4d5f9b45905a81af9981b586690e020d5b3bfc60
[ "Apache-2.0" ]
268
2020-03-31T15:46:59.000Z
2022-03-31T18:01:08.000Z
tola/test/test_pipeline.py
mercycorps/toladata
4d5f9b45905a81af9981b586690e020d5b3bfc60
[ "Apache-2.0" ]
1
2021-01-05T01:58:24.000Z
2021-01-05T01:58:24.000Z
from unittest import mock from django.test import TestCase from factories.workflow_models import CountryFactory, OrganizationFactory, TolaUserFactory from tola_management.models import UserManagementAuditLog as UM from workflow.models import TolaUser from tola.pipeline import create_user_okta SPECIAL_CHARS = "ßpécî...
46.280303
119
0.569815
from unittest import mock from django.test import TestCase from factories.workflow_models import CountryFactory, OrganizationFactory, TolaUserFactory from tola_management.models import UserManagementAuditLog as UM from workflow.models import TolaUser from tola.pipeline import create_user_okta SPECIAL_CHARS = "ßpécî...
11,659
21
207
7667f234b1d7bf88f3908ea5cd6180604aaa5929
933
py
Python
tools/idlstub.py
yashrajkakkad/resea
985ddb887b460f422b06a081a878598c79e8d8e0
[ "CC0-1.0", "MIT" ]
null
null
null
tools/idlstub.py
yashrajkakkad/resea
985ddb887b460f422b06a081a878598c79e8d8e0
[ "CC0-1.0", "MIT" ]
null
null
null
tools/idlstub.py
yashrajkakkad/resea
985ddb887b460f422b06a081a878598c79e8d8e0
[ "CC0-1.0", "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse from lark import Lark if __name__ == "__main__": main()
23.923077
75
0.599143
#!/usr/bin/env python3 import argparse from lark import Lark def parse(source): parser = Lark(""" """) ast = parser.parse(source) idl = {} return idl def c_generator(idl): text = "" text += f"#ifndef __IDL_{idl['name']}_H__\n" text += f"#define __IDL_{idl['name']}_H__\n" text += ...
764
0
69
82f889092288f46a74d16aabc0c4571dad4852ce
1,757
py
Python
RRT.py
garymullen/python-visualization-of-the-RRT-algorithm-with-pygame
deeb7122ffc247982463e1358004a51c1886307a
[ "MIT" ]
4
2021-05-24T00:56:53.000Z
2022-01-23T19:17:09.000Z
RRT.py
garymullen/python-visualization-of-the-RRT-algorithm-with-pygame
deeb7122ffc247982463e1358004a51c1886307a
[ "MIT" ]
1
2021-08-07T11:20:26.000Z
2021-08-07T11:20:26.000Z
RRT.py
garymullen/python-visualization-of-the-RRT-algorithm-with-pygame
deeb7122ffc247982463e1358004a51c1886307a
[ "MIT" ]
4
2021-07-24T15:19:32.000Z
2022-02-19T12:57:10.000Z
import pygame from RRTbasePy import RRTGraph from RRTbasePy import RRTMap import time if __name__ == '__main__': result=False while not result: try: main() result=True except: result=False ...
19.741573
96
0.515083
import pygame from RRTbasePy import RRTGraph from RRTbasePy import RRTMap import time def main(): dimensions =(512,512) start=(50,50) goal=(300,300) obsdim=30 obsnum=50 iteration=0 t1=0 pygame.init() map=RRTMap(start,goal,dimensions,obsdim,obsnum) graph=RRTGraph...
1,411
0
25
20a085f350adb968c43f78b8f69f54f92daca374
1,940
py
Python
gendatafiles.py
incolumepy/analise_bonus_viagem
84dd60477ea03cccd0b4c56591f017ca9b123442
[ "MIT" ]
null
null
null
gendatafiles.py
incolumepy/analise_bonus_viagem
84dd60477ea03cccd0b4c56591f017ca9b123442
[ "MIT" ]
null
null
null
gendatafiles.py
incolumepy/analise_bonus_viagem
84dd60477ea03cccd0b4c56591f017ca9b123442
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = '@britodfbr' import pandas as pd from faker import Faker import locale import random import toml from pathlib import Path dados = Path('dados/dados.toml') dados.parent.mkdir(exist_ok=True) locale.setlocale(locale.LC_TIME, 'pt_BR.utf8') fake = Faker('pt_BR') ...
32.881356
106
0.680412
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = '@britodfbr' import pandas as pd from faker import Faker import locale import random import toml from pathlib import Path dados = Path('dados/dados.toml') dados.parent.mkdir(exist_ok=True) locale.setlocale(locale.LC_TIME, 'pt_BR.utf8') fake = Faker('pt_BR') ...
0
0
0
2d792888b823d61762ecd6f4dca134980b6301ba
3,948
py
Python
case/conftest.py
lzpsgh/AscTrio
f969beece5dc93d29063da03793521bc54b814dd
[ "MIT" ]
5
2021-07-21T06:50:51.000Z
2022-03-31T04:18:28.000Z
case/conftest.py
lzpsgh/AscTrio
f969beece5dc93d29063da03793521bc54b814dd
[ "MIT" ]
null
null
null
case/conftest.py
lzpsgh/AscTrio
f969beece5dc93d29063da03793521bc54b814dd
[ "MIT" ]
1
2022-03-28T01:50:03.000Z
2022-03-28T01:50:03.000Z
import allure import pytest from api.account import account from api.user import user from util.log_util import logger from util.mysql_util import mysqler # 在crm后台登录,获取cookies @pytest.fixture(scope="session") # 在h5后台登录,获取cookies @pytest.fixture(scope="session") # 注册1个leads # 注册1个正课用户 # 已老用户身份登录并拿到cookie # ...
27.227586
79
0.669959
import allure import pytest from api.account import account from api.user import user from util.log_util import logger from util.mysql_util import mysqler # 在crm后台登录,获取cookies @pytest.fixture(scope="session") def crm_login_with_mm(): login_info = account.crm_login() # yield login_info.json() # 在h5后台登录,获取co...
841
0
220
3644b2d7c8d6d952b40c533be05d846fe1519fee
520
py
Python
gdscript/editor/views.py
triptych/gdscript-online
542ea58a3b69251a2a44bf64b9f008165390dad6
[ "MIT" ]
1
2019-06-23T12:52:26.000Z
2019-06-23T12:52:26.000Z
gdscript/editor/views.py
triptych/gdscript-online
542ea58a3b69251a2a44bf64b9f008165390dad6
[ "MIT" ]
null
null
null
gdscript/editor/views.py
triptych/gdscript-online
542ea58a3b69251a2a44bf64b9f008165390dad6
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.http import HttpResponse from .gdscript import GDSCriptCLI, GODOT_BINARY
22.608696
62
0.696154
from django.shortcuts import render, redirect from django.http import HttpResponse from .gdscript import GDSCriptCLI, GODOT_BINARY def root(request): return redirect('index') def index(request): return render(request, 'editor.html') def script(request): code = request.POST.get('script') if code i...
316
0
69
fe191273dc849bf8555a1a90ce02f8756127bfa6
289
py
Python
locale/pot/api/plotting/_autosummary/pyvista-Plotter-add_light-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
4
2020-08-07T08:19:19.000Z
2020-12-04T09:51:11.000Z
locale/pot/api/plotting/_autosummary/pyvista-Plotter-add_light-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
19
2020-08-06T00:24:30.000Z
2022-03-30T19:22:24.000Z
locale/pot/api/plotting/_autosummary/pyvista-Plotter-add_light-1.py
tkoyama010/pyvista-doc-translations
23bb813387b7f8bfe17e86c2244d5dd2243990db
[ "MIT" ]
1
2021-03-09T07:50:40.000Z
2021-03-09T07:50:40.000Z
# Create a plotter that we initialize with no lights, and add a # cube and a single headlight to it. # import pyvista as pv plotter = pv.Plotter(lighting='none') _ = plotter.add_mesh(pv.Cube()) light = pv.Light(color='cyan', light_type='headlight') plotter.add_light(light) plotter.show()
28.9
63
0.743945
# Create a plotter that we initialize with no lights, and add a # cube and a single headlight to it. # import pyvista as pv plotter = pv.Plotter(lighting='none') _ = plotter.add_mesh(pv.Cube()) light = pv.Light(color='cyan', light_type='headlight') plotter.add_light(light) plotter.show()
0
0
0
6f927b8409974a28e2fed78ae93b333d976e1cc1
7,100
py
Python
DictionaryBot/DictionaryBot.py
darrenwjones/SlackBots
6a81fa7b2cd2eb51361bad2f1db3027656f69760
[ "MIT" ]
null
null
null
DictionaryBot/DictionaryBot.py
darrenwjones/SlackBots
6a81fa7b2cd2eb51361bad2f1db3027656f69760
[ "MIT" ]
null
null
null
DictionaryBot/DictionaryBot.py
darrenwjones/SlackBots
6a81fa7b2cd2eb51361bad2f1db3027656f69760
[ "MIT" ]
null
null
null
# THE MOST INTERESTING MAN IN THE WORLD # SLACK CHATBOT IN PYTHON # # Author: Zachary Gillis #-------------------------------------- import os import time import re import random import urllib import requests import json import sqlite3 from slackclient import SlackClient from config import SLACK_BOT_TOKEN from databas...
34.134615
159
0.584366
# THE MOST INTERESTING MAN IN THE WORLD # SLACK CHATBOT IN PYTHON # # Author: Zachary Gillis #-------------------------------------- import os import time import re import random import urllib import requests import json import sqlite3 from slackclient import SlackClient from config import SLACK_BOT_TOKEN from databas...
5,233
0
207
880fbcfbd0aea4d12b6ca7297e8e327c30aee7b9
3,697
py
Python
osbrain/tests/test_agent_async_requests_handlers.py
nicoddemus/osbrain
26ba98e1d2dc3389e4ae1047d625f8d3180fe68b
[ "Apache-2.0" ]
null
null
null
osbrain/tests/test_agent_async_requests_handlers.py
nicoddemus/osbrain
26ba98e1d2dc3389e4ae1047d625f8d3180fe68b
[ "Apache-2.0" ]
null
null
null
osbrain/tests/test_agent_async_requests_handlers.py
nicoddemus/osbrain
26ba98e1d2dc3389e4ae1047d625f8d3180fe68b
[ "Apache-2.0" ]
null
null
null
""" Test file for asynchronous requests handlers. """ import pytest from osbrain import Agent from osbrain import run_agent from osbrain.helper import wait_agent_attr from common import nsproxy # noqa: F401 from common import append_received def test_async_rep_handler_exists(nsproxy): """ When binding an...
31.330508
76
0.689748
""" Test file for asynchronous requests handlers. """ import pytest from osbrain import Agent from osbrain import run_agent from osbrain.helper import wait_agent_attr from common import nsproxy # noqa: F401 from common import append_received class ServerAsyncRep(Agent): def on_init(self): self.received...
271
17
179
7fb5ad404820adebd92f407705653e62e6fe4972
3,090
py
Python
revscoring/languages/tests/test_romanian.py
mariushoch/revscoring
5ecd54d31c4088b6f142c0ef54116cc5bdce0ff2
[ "MIT" ]
null
null
null
revscoring/languages/tests/test_romanian.py
mariushoch/revscoring
5ecd54d31c4088b6f142c0ef54116cc5bdce0ff2
[ "MIT" ]
null
null
null
revscoring/languages/tests/test_romanian.py
mariushoch/revscoring
5ecd54d31c4088b6f142c0ef54116cc5bdce0ff2
[ "MIT" ]
null
null
null
import pickle from .. import romanian from ...datasources import revision_oriented from ...dependencies import solve from .util import compare_extraction BAD = [ "bou", "caca", "cacat", "cur", "curu", "curva", "curve", "dracu", "fraier", "fraieri", "fraierilor", "fut", "fute", "futut", "k...
29.711538
84
0.645955
import pickle from .. import romanian from ...datasources import revision_oriented from ...dependencies import solve from .util import compare_extraction BAD = [ "bou", "caca", "cacat", "cur", "curu", "curva", "curve", "dracu", "fraier", "fraieri", "fraierilor", "fut", "fute", "futut", "k...
1,479
0
115
8663390282d738969fd591ac46f3c32c680cf5b5
977
py
Python
app/models/problem.py
just806me/StudyingPPBot
d958bfe7e634f988ca98a82afa83584c6e28f71c
[ "MIT" ]
null
null
null
app/models/problem.py
just806me/StudyingPPBot
d958bfe7e634f988ca98a82afa83584c6e28f71c
[ "MIT" ]
6
2019-01-19T11:50:00.000Z
2019-07-30T09:46:08.000Z
app/models/problem.py
just806me/StudyingPPBot
d958bfe7e634f988ca98a82afa83584c6e28f71c
[ "MIT" ]
null
null
null
from __future__ import annotations from dataclasses import dataclass from typing import Optional, List from ..database import Database @dataclass
30.53125
91
0.627431
from __future__ import annotations from dataclasses import dataclass from typing import Optional, List from ..database import Database @dataclass class Problem: id: int group: int @staticmethod def create(db: Database, id: int, group: int) -> Problem: cursor = db.cursor() cursor.exec...
651
155
22
43c5c0c0c39bbb309a3391a5aca7a64083a235be
1,350
py
Python
leetcode/1.Array_String/15.3Sum.py
aenon/online_judge
bff3991519cd4f2d80dea9b17680dbc5d4c44b9b
[ "MIT" ]
null
null
null
leetcode/1.Array_String/15.3Sum.py
aenon/online_judge
bff3991519cd4f2d80dea9b17680dbc5d4c44b9b
[ "MIT" ]
null
null
null
leetcode/1.Array_String/15.3Sum.py
aenon/online_judge
bff3991519cd4f2d80dea9b17680dbc5d4c44b9b
[ "MIT" ]
1
2015-01-10T16:02:43.000Z
2015-01-10T16:02:43.000Z
# Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. # Note: The solution set must not contain duplicate triplets. # For example, given array S = [-1, 0, 1, 2, -1, -4], # A solution set is: # [ # [-1, 0, 1], ...
32.926829
157
0.425185
# Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. # Note: The solution set must not contain duplicate triplets. # For example, given array S = [-1, 0, 1, 2, -1, -4], # A solution set is: # [ # [-1, 0, 1], ...
0
986
23
f345e3d4640258bd791593fb57530d594dee8bb4
681
py
Python
ParaViewCore/ServerManager/Default/Testing/Python/ProxyBackwardsCompatibilityTest.py
trickyMan/paraview_view
3b38670e8259b688093e0d7ba2fe2edd7c5d57a7
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
ParaViewCore/ServerManager/Default/Testing/Python/ProxyBackwardsCompatibilityTest.py
trickyMan/paraview_view
3b38670e8259b688093e0d7ba2fe2edd7c5d57a7
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
ParaViewCore/ServerManager/Default/Testing/Python/ProxyBackwardsCompatibilityTest.py
trickyMan/paraview_view
3b38670e8259b688093e0d7ba2fe2edd7c5d57a7
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
from paraview.simple import * import paraview sourceDs = Wavelet() inputDs = Sphere() # Test 'Resample With Dataset` proxies p1 = ResampleWithDataset(Input=inputDs, Source=sourceDs) print("Proxy Name before: %s" % p1.GetXMLName()) assert p1.GetXMLName() == "ResampleWithDataset", "The default proxy name must be Resamp...
34.05
101
0.760646
from paraview.simple import * import paraview sourceDs = Wavelet() inputDs = Sphere() # Test 'Resample With Dataset` proxies p1 = ResampleWithDataset(Input=inputDs, Source=sourceDs) print("Proxy Name before: %s" % p1.GetXMLName()) assert p1.GetXMLName() == "ResampleWithDataset", "The default proxy name must be Resamp...
0
0
0
808da29a79df41623dd584c2d77377f50775018c
533
py
Python
apps/tinyosGW/cgi/simple.py
jeonghoonkang/BerePi
e04283a94a6a0487ab0049dc3e514d6c5dda39cc
[ "BSD-2-Clause" ]
22
2015-06-03T06:28:27.000Z
2022-03-18T08:02:45.000Z
apps/tinyosGW/cgi/simple.py
jeonghoonkang/BerePi
e04283a94a6a0487ab0049dc3e514d6c5dda39cc
[ "BSD-2-Clause" ]
14
2015-06-08T01:31:53.000Z
2020-08-30T02:19:15.000Z
apps/tinyosGW/cgi/simple.py
jeonghoonkang/BerePi
e04283a94a6a0487ab0049dc3e514d6c5dda39cc
[ "BSD-2-Clause" ]
26
2015-05-12T09:33:55.000Z
2021-08-30T05:41:00.000Z
#!/usr/bin/python #-*- coding: UTF-8-*- import cgi import cgitb import os import sys sys.path.append("/home/pi/devel/BerePi/apps/tinyosGW/cgi") #import simple if __name__ == "__main__": cgitb.enable() args = cgi.FieldStorage() #print os.environ.items() print "Content-type: text/html\n" pr...
20.5
97
0.65666
#!/usr/bin/python #-*- coding: UTF-8-*- import cgi import cgitb import os import sys sys.path.append("/home/pi/devel/BerePi/apps/tinyosGW/cgi") #import simple if __name__ == "__main__": cgitb.enable() args = cgi.FieldStorage() #print os.environ.items() print "Content-type: text/html\n" pr...
0
0
0
a6564b153fb2ffdc4f517dc5d57e7c5c16af1f18
2,619
py
Python
param_handle.py
mauricioAyllon/NASA-gamma
14f53a626096d2bf0fce811608c9e59a8d6b5287
[ "MIT" ]
5
2020-12-03T21:45:43.000Z
2021-12-04T16:14:33.000Z
param_handle.py
mauricioAyllon/NASA-gamma
14f53a626096d2bf0fce811608c9e59a8d6b5287
[ "MIT" ]
null
null
null
param_handle.py
mauricioAyllon/NASA-gamma
14f53a626096d2bf0fce811608c9e59a8d6b5287
[ "MIT" ]
3
2020-12-03T20:58:44.000Z
2022-03-24T04:52:57.000Z
# -*- coding: utf-8 -*- """ Created on Mon Feb 22 18:24:32 2021 @author: mauricio parameter handle for GUI """ import pandas as pd from nasagamma import spectrum as sp from nasagamma import peaksearch as ps from nasagamma import read_cnf import re
29.761364
82
0.588774
# -*- coding: utf-8 -*- """ Created on Mon Feb 22 18:24:32 2021 @author: mauricio parameter handle for GUI """ import pandas as pd from nasagamma import spectrum as sp from nasagamma import peaksearch as ps from nasagamma import read_cnf import re def get_spect_search(commands): if commands["-o"]: retur...
2,321
0
46
6a0407340f0f8e682733fd9d9686098ae9ce5d03
5,827
py
Python
demo/app.py
ignacioct/Temis
cf237470e728b45cfa6203eb81d4868720309c26
[ "CC0-1.0" ]
4
2021-06-13T10:19:11.000Z
2021-06-29T16:45:50.000Z
demo/app.py
ignacioct/Temis
cf237470e728b45cfa6203eb81d4868720309c26
[ "CC0-1.0" ]
null
null
null
demo/app.py
ignacioct/Temis
cf237470e728b45cfa6203eb81d4868720309c26
[ "CC0-1.0" ]
1
2022-02-08T19:00:00.000Z
2022-02-08T19:00:00.000Z
import os import streamlit as st from text import ( spanish_text, english_text, spanish_labels_dictionary, english_labels_dictionary, ) import pandas as pd import altair as alt import biome.text st.set_page_config(page_title="Temis Demo App", layout="centered") os.environ["TOKENIZERS_PARALLELISM"] =...
26.852535
105
0.596019
import os import streamlit as st from text import ( spanish_text, english_text, spanish_labels_dictionary, english_labels_dictionary, ) import pandas as pd import altair as alt import biome.text st.set_page_config(page_title="Temis Demo App", layout="centered") os.environ["TOKENIZERS_PARALLELISM"] =...
2,802
0
23
180271a8b45178f5e56c2cb102be6b2943567928
19,214
py
Python
contsub_dirty_image.py
jmoldon/hcg_hi_pipeline
c06128c6f8acb0dcae9e45efc164e3d282f3ac8d
[ "MIT" ]
1
2020-02-20T08:56:48.000Z
2020-02-20T08:56:48.000Z
contsub_dirty_image.py
jmoldon/hcg_hi_pipeline
c06128c6f8acb0dcae9e45efc164e3d282f3ac8d
[ "MIT" ]
5
2019-12-11T12:02:22.000Z
2022-03-29T08:46:05.000Z
contsub_dirty_image.py
jmoldon/hcg_hi_pipeline
c06128c6f8acb0dcae9e45efc164e3d282f3ac8d
[ "MIT" ]
1
2022-03-23T13:11:01.000Z
2022-03-23T13:11:01.000Z
import imp, glob, shutil, numpy imp.load_source('common_functions','common_functions.py') import common_functions as cf def contsub(msfile,config,config_raw,config_file,logger): """ Subtracts the continuum from each of the science target MSs. If the no line free range is set then the user is queried (in in...
53.372222
536
0.610284
import imp, glob, shutil, numpy imp.load_source('common_functions','common_functions.py') import common_functions as cf def contsub(msfile,config,config_raw,config_file,logger): """ Subtracts the continuum from each of the science target MSs. If the no line free range is set then the user is queried (in in...
0
0
0
3e848fde2ee28e85df566a703650c0fe2549e86b
6,556
py
Python
LiveData.py
jcedmiston/METRA-Rail-Delay-Study
c595ca060949da00f7dd841df5297d66606fc8f7
[ "MIT" ]
null
null
null
LiveData.py
jcedmiston/METRA-Rail-Delay-Study
c595ca060949da00f7dd841df5297d66606fc8f7
[ "MIT" ]
null
null
null
LiveData.py
jcedmiston/METRA-Rail-Delay-Study
c595ca060949da00f7dd841df5297d66606fc8f7
[ "MIT" ]
null
null
null
from threading import Thread import time import datetime import json import requests import csv # Create keys.py in same directory and include API keys from keys import METRA_USER, METRA_PASS, WEATHER_KEY import logging as log # Setup logging log.basicConfig(filename='data/data_collection.log', filem...
38.792899
100
0.567877
from threading import Thread import time import datetime import json import requests import csv # Create keys.py in same directory and include API keys from keys import METRA_USER, METRA_PASS, WEATHER_KEY import logging as log # Setup logging log.basicConfig(filename='data/data_collection.log', filem...
5,409
0
69
eb4155bb1e3d09a092a5353cc7fb49e067753001
22,109
py
Python
src/clustar/core.py
clustar/Clustar
83e155feffc10c4bf172f8ec769fb3c5ffe1d579
[ "MIT" ]
4
2021-02-24T17:27:25.000Z
2021-06-28T04:45:32.000Z
src/clustar/core.py
clustar/Clustar
83e155feffc10c4bf172f8ec769fb3c5ffe1d579
[ "MIT" ]
3
2021-04-05T14:53:26.000Z
2021-06-27T20:17:14.000Z
src/clustar/core.py
clustar/Clustar
83e155feffc10c4bf172f8ec769fb3c5ffe1d579
[ "MIT" ]
1
2021-02-15T16:13:05.000Z
2021-02-15T16:13:05.000Z
""" Contains the 'ClustarData' class, which is responsible for executing the entire project pipeline for detecting groups in a single FITS image; this class also collects and stores all relevant data, statistics, and variables in this pipeline. Visit <https://clustar.github.io/> for additional information. """ from...
34.708006
79
0.529829
""" Contains the 'ClustarData' class, which is responsible for executing the entire project pipeline for detecting groups in a single FITS image; this class also collects and stores all relevant data, statistics, and variables in this pipeline. Visit <https://clustar.github.io/> for additional information. """ from...
2,902
0
322
028b9e4cadf11f8e513a8d672a8eded618c72dec
1,017
py
Python
q2/agents/supervised/supervised_agent.py
tdb-alcorn/q2
ca03e419b1c62660ca65981ff790b70fe979c51f
[ "MIT" ]
3
2018-07-03T06:14:58.000Z
2018-07-10T22:56:21.000Z
q2/agents/supervised/supervised_agent.py
tdb-alcorn/q2
ca03e419b1c62660ca65981ff790b70fe979c51f
[ "MIT" ]
10
2018-07-02T09:02:44.000Z
2022-02-09T23:45:31.000Z
q2/agents/supervised/supervised_agent.py
tdb-alcorn/q2
ca03e419b1c62660ca65981ff790b70fe979c51f
[ "MIT" ]
null
null
null
import tensorflow as tf import numpy as np from ..agent import Agent from abc import ABC, abstractmethod
20.755102
35
0.554572
import tensorflow as tf import numpy as np from ..agent import Agent from abc import ABC, abstractmethod class Supervised(Agent, ABC): # Not implemented def act(self, sess:tf.Session, state:np.array, train:bool, ) -> np.array: raise NotImplementedError() # Not imple...
640
250
23
a17a4b709c3e8c5ef2969f1908748b99c2a32a43
1,171
py
Python
scripts/download/download_from_sra_by_ids_by_fastq_dump.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
10
2015-04-28T14:15:04.000Z
2021-03-15T00:07:38.000Z
scripts/download/download_from_sra_by_ids_by_fastq_dump.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
null
null
null
scripts/download/download_from_sra_by_ids_by_fastq_dump.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
6
2017-03-16T22:38:41.000Z
2021-08-11T00:22:52.000Z
#!/usr/bin/env python __author__ = 'Sergei F. Kliver' import argparse from RouToolPa.Collections.General import IdList from RouToolPa.Tools.NCBIToolkit import FastqDump parser = argparse.ArgumentParser() parser.add_argument("-i", "--ids", action="store", dest="ids", type=lambda s: s.split(","), ...
40.37931
91
0.678907
#!/usr/bin/env python __author__ = 'Sergei F. Kliver' import argparse from RouToolPa.Collections.General import IdList from RouToolPa.Tools.NCBIToolkit import FastqDump parser = argparse.ArgumentParser() parser.add_argument("-i", "--ids", action="store", dest="ids", type=lambda s: s.split(","), ...
0
0
0
b85cf814833c5a45d46362a5401bbc9b0d0199ae
8,597
py
Python
problems/intrusion_bulk.py
gautelinga/-BERNAISE
aa45ae5ccc323d9c61c93542cc327889cae4d0b2
[ "MIT" ]
15
2017-07-19T18:33:26.000Z
2021-03-25T18:36:47.000Z
problems/intrusion_bulk.py
gautelinga/-BERNAISE
aa45ae5ccc323d9c61c93542cc327889cae4d0b2
[ "MIT" ]
9
2017-05-30T16:13:08.000Z
2017-08-25T09:09:05.000Z
problems/intrusion_bulk.py
gautelinga/-BERNAISE
aa45ae5ccc323d9c61c93542cc327889cae4d0b2
[ "MIT" ]
7
2018-05-08T22:50:15.000Z
2020-06-25T13:50:37.000Z
import dolfin as df import os from . import * from common.io import mpi_is_root from common.bcs import Fixed, Pressure # from ufl import max_value __author__ = "Asger Bolet; Gaute Linga" # Left boundary is target domain def initialize(Lx, Ly, rad_init, interface_thickness, solutes, restart_folde...
33.321705
80
0.552402
import dolfin as df import os from . import * from common.io import mpi_is_root from common.bcs import Fixed, Pressure # from ufl import max_value __author__ = "Asger Bolet; Gaute Linga" class PeriodicBoundary(df.SubDomain): # Left boundary is target domain def __init__(self, Ly): self.Ly = Ly ...
4,168
25
389
48e20ebefdbcecf12574ebbe717f08292ee1fd42
5,022
py
Python
test/test_cnvaeon_.py
peter88213/aeon3odt
f20572177e1e10e2dcc6a130cf3b2b05ed11eed9
[ "MIT" ]
null
null
null
test/test_cnvaeon_.py
peter88213/aeon3odt
f20572177e1e10e2dcc6a130cf3b2b05ed11eed9
[ "MIT" ]
1
2021-10-14T16:00:11.000Z
2021-12-22T11:51:05.000Z
test/test_cnvaeon_.py
peter88213/aeon3odt
f20572177e1e10e2dcc6a130cf3b2b05ed11eed9
[ "MIT" ]
null
null
null
""" Python unit tests for the aeon3odt project. Test suite for aeon3yw.pyw. For further information see https://github.com/peter88213/aeon3yw Published under the MIT License (https://opensource.org/licenses/mit-license.php) """ from shutil import copyfile import zipfile import os import unittest import cnvaeon_stub_...
26.712766
81
0.660295
""" Python unit tests for the aeon3odt project. Test suite for aeon3yw.pyw. For further information see https://github.com/peter88213/aeon3yw Published under the MIT License (https://opensource.org/licenses/mit-license.php) """ from shutil import copyfile import zipfile import os import unittest import cnvaeon_stub_...
3,120
0
284
81743b15ebc1431123671402435d75028b031bce
973
py
Python
Code/extraction/tensor.py
chrislcs/linear-vegetation-elements
8e45a40dca472ca9d5cbb58593d9f5b5bc855bf4
[ "Apache-2.0" ]
3
2020-06-16T09:05:54.000Z
2020-11-02T06:48:26.000Z
Code/extraction/tensor.py
chrislcs/linear-vegetation-elements
8e45a40dca472ca9d5cbb58593d9f5b5bc855bf4
[ "Apache-2.0" ]
null
null
null
Code/extraction/tensor.py
chrislcs/linear-vegetation-elements
8e45a40dca472ca9d5cbb58593d9f5b5bc855bf4
[ "Apache-2.0" ]
5
2019-01-07T18:03:32.000Z
2021-10-07T12:56:39.000Z
# -*- coding: utf-8 -*- """ @author: Chris Lucas """ import numpy as np def structure_tensor(points): """ Computes the structure tensor of points by computing the eigenvalues and eigenvectors of the covariance matrix of a point cloud. Parameters ---------- points : (Mx3) array X, Y ...
26.297297
77
0.63926
# -*- coding: utf-8 -*- """ @author: Chris Lucas """ import numpy as np def structure_tensor(points): """ Computes the structure tensor of points by computing the eigenvalues and eigenvectors of the covariance matrix of a point cloud. Parameters ---------- points : (Mx3) array X, Y ...
0
0
0
5df36d17a510263aaced24f3c376b33c45ba1593
17,425
py
Python
sdk/lusid/models/equity_swap_all_of.py
bogdanLicaFinbourne/lusid-sdk-python-preview
f0f91f992e0417733c4c8abd2674d080a52b6890
[ "MIT" ]
null
null
null
sdk/lusid/models/equity_swap_all_of.py
bogdanLicaFinbourne/lusid-sdk-python-preview
f0f91f992e0417733c4c8abd2674d080a52b6890
[ "MIT" ]
null
null
null
sdk/lusid/models/equity_swap_all_of.py
bogdanLicaFinbourne/lusid-sdk-python-preview
f0f91f992e0417733c4c8abd2674d080a52b6890
[ "MIT" ]
null
null
null
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.2863 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class EquitySwapAllOf(object): """NOTE: This class ...
38.722222
369
0.652626
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.2863 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class EquitySwapAllOf(object): """NOTE: This class ...
0
0
0
48cb6a6aa2374a2429827425a598c6f0045d652a
4,008
py
Python
Choruslib/blat.py
kramundson/Chorus2
43be15e082f346dc45b94a7fadb141b3a6f8c37c
[ "MIT" ]
11
2019-05-23T13:28:39.000Z
2022-02-10T00:24:54.000Z
Choruslib/blat.py
kramundson/Chorus2
43be15e082f346dc45b94a7fadb141b3a6f8c37c
[ "MIT" ]
3
2019-03-15T01:47:53.000Z
2021-12-16T07:41:08.000Z
Choruslib/blat.py
kramundson/Chorus2
43be15e082f346dc45b94a7fadb141b3a6f8c37c
[ "MIT" ]
11
2019-02-28T08:17:02.000Z
2021-12-13T11:44:02.000Z
from __future__ import print_function import sys import subprocess import signal import time import os import shlex from Choruslib.Blatres import Blatres def start_gfServer(file2bit, gfspath, stepsize=7, blatport=10010): ''' :param file2bit: :param gfspath: :param stepsize: :param blatport: :...
21.901639
138
0.621507
from __future__ import print_function import sys import subprocess import signal import time import os import shlex from Choruslib.Blatres import Blatres def start_gfServer(file2bit, gfspath, stepsize=7, blatport=10010): ''' :param file2bit: :param gfspath: :param stepsize: :param blatport: :...
1,837
0
115
c459274929ba35904b278fdbc79e4f6bc3bee160
19,800
py
Python
api/migrations/versions/af9c317d2c92_.py
NikolaSiplakova/Baobab
180cd3cb492ed47d38ca0b473572fad0ac6f604b
[ "Apache-2.0" ]
52
2019-01-10T16:04:26.000Z
2022-02-10T00:55:59.000Z
api/migrations/versions/af9c317d2c92_.py
NikolaSiplakova/Baobab
180cd3cb492ed47d38ca0b473572fad0ac6f604b
[ "Apache-2.0" ]
535
2019-01-08T21:24:01.000Z
2022-02-27T15:24:06.000Z
api/migrations/versions/af9c317d2c92_.py
NikolaSiplakova/Baobab
180cd3cb492ed47d38ca0b473572fad0ac6f604b
[ "Apache-2.0" ]
36
2019-01-10T16:09:15.000Z
2021-06-28T21:02:47.000Z
"""empty message Revision ID: af9c317d2c92 Revises: 245d12695c69 Create Date: 2020-03-12 08:49:36.009020 """ # revision identifiers, used by Alembic. revision = 'af9c317d2c92' down_revision = '245d12695c69' from alembic import op import sqlalchemy as sa from sqlalchemy import orm from app import db from enum import...
38.076923
400
0.677222
"""empty message Revision ID: af9c317d2c92 Revises: 245d12695c69 Create Date: 2020-03-12 08:49:36.009020 """ # revision identifiers, used by Alembic. revision = 'af9c317d2c92' down_revision = '245d12695c69' from alembic import op import sqlalchemy as sa from sqlalchemy import orm from app import db from enum import...
14,842
4,301
230
ece5c4da754e79fc13f9c5db7f22ff6ccf734a97
892
py
Python
textovni.py
timenbob/3-v-vrsto-4x4
bdb1dcdeec7ea3c977f739643d08762f5e6a38ee
[ "MIT" ]
null
null
null
textovni.py
timenbob/3-v-vrsto-4x4
bdb1dcdeec7ea3c977f739643d08762f5e6a38ee
[ "MIT" ]
1
2021-05-11T07:58:22.000Z
2021-05-11T07:58:22.000Z
textovni.py
timenbob/3-v-vrsto-4x4
bdb1dcdeec7ea3c977f739643d08762f5e6a38ee
[ "MIT" ]
null
null
null
from model import Igrica nova_igra = 'n' while nova_igra == "n": trenutna_igra = Igrica() # print(trenutna_igra) while True: trenutna_igra.izpis_igre() print(f"na vrsti je igralec {trenutna_igra.igralec}") while True: print("Napiši št: ") polje = input()...
24.108108
61
0.539238
from model import Igrica nova_igra = 'n' while nova_igra == "n": trenutna_igra = Igrica() # print(trenutna_igra) while True: trenutna_igra.izpis_igre() print(f"na vrsti je igralec {trenutna_igra.igralec}") while True: print("Napiši št: ") polje = input()...
0
0
0
db3e4d24dfba95e51f64f911028d197a6aed38a5
214,999
py
Python
demo/ESI_tranquility_latest.py
nicoscha/PESI
4ce85a51b05bca891cc7e191fca67e93788011bd
[ "Apache-2.0" ]
null
null
null
demo/ESI_tranquility_latest.py
nicoscha/PESI
4ce85a51b05bca891cc7e191fca67e93788011bd
[ "Apache-2.0" ]
1
2021-06-02T00:15:39.000Z
2021-06-02T00:15:39.000Z
demo/ESI_tranquility_latest.py
nicoscha/PESI
4ce85a51b05bca891cc7e191fca67e93788011bd
[ "Apache-2.0" ]
null
null
null
# Python EVE Swagger Interface # https://github.com/nicoscha/PESI # ESI version 0.8.9 import ESI_request def get_alliances(*, if_none_match=None): """ :param if_none_match: ETag from a previous request. A 304 will be returned if this matches the current ETag List all active player alliances --- Al...
43.060084
265
0.579654
# Python EVE Swagger Interface # https://github.com/nicoscha/PESI # ESI version 0.8.9 import ESI_request def get_alliances(*, if_none_match=None): """ :param if_none_match: ETag from a previous request. A 304 will be returned if this matches the current ETag List all active player alliances --- Al...
0
0
0
07e63312aff52436333be7a1e3761ff63ade86f0
522
py
Python
CCC/ccc18s2.py
devAdhiraj/coding-problems
e15d0eeb025e1ad503c73eb9280e6226fd979164
[ "MIT" ]
null
null
null
CCC/ccc18s2.py
devAdhiraj/coding-problems
e15d0eeb025e1ad503c73eb9280e6226fd979164
[ "MIT" ]
null
null
null
CCC/ccc18s2.py
devAdhiraj/coding-problems
e15d0eeb025e1ad503c73eb9280e6226fd979164
[ "MIT" ]
null
null
null
n = int(input()) a = [list(map(int, input().split())) for i in range(n)] c = min([a[0][0], a[0][n-1], a[n - 1][0], a[n - 1][n - 1]]) if a[0][0] == c: for i in a: print(*i) pass elif a[0][n - 1] == c: for i in range(n - 1, -1, -1): for j in range(n): print(a[j][i], end=' ') ...
21.75
59
0.398467
n = int(input()) a = [list(map(int, input().split())) for i in range(n)] c = min([a[0][0], a[0][n-1], a[n - 1][0], a[n - 1][n - 1]]) if a[0][0] == c: for i in a: print(*i) pass elif a[0][n - 1] == c: for i in range(n - 1, -1, -1): for j in range(n): print(a[j][i], end=' ') ...
0
0
0
d9295e12456f31b422c2f1a459ef43e826ffca66
596
py
Python
tests/test_util.py
infolab-csail/lispify
f0156b2ccf5edb3cc77de3cd7ffc63f2883fdd30
[ "MIT" ]
null
null
null
tests/test_util.py
infolab-csail/lispify
f0156b2ccf5edb3cc77de3cd7ffc63f2883fdd30
[ "MIT" ]
11
2016-07-25T01:23:07.000Z
2020-11-25T18:35:00.000Z
tests/test_util.py
infolab-csail/lispify
f0156b2ccf5edb3cc77de3cd7ffc63f2883fdd30
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_util ---------------------------------- Tests for `util` module. """ try: import unittest2 as unittest except ImportError: import unittest from lispify import util if __name__ == '__main__': unittest.main()
19.225806
63
0.654362
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_util ---------------------------------- Tests for `util` module. """ try: import unittest2 as unittest except ImportError: import unittest from lispify import util class TestUtil(unittest.TestCase): def test_camel_case_to_lisp_name(self): ...
251
13
50
2d47349b76d89028925916b033d8dcdc74aebae3
937
py
Python
PYTHON/LAB/TW7/TW7a.py
flick-23/SEM-4
fe64c19e7df64390e94ba560006d32a561fd3579
[ "MIT" ]
24
2021-03-24T08:52:41.000Z
2021-11-13T11:52:54.000Z
PYTHON/LAB/TW7/TW7a.py
flick-23/SEM-4
fe64c19e7df64390e94ba560006d32a561fd3579
[ "MIT" ]
1
2021-04-28T06:16:44.000Z
2021-04-28T06:16:44.000Z
PYTHON/LAB/TW7/TW7a.py
flick-23/SEM-4
fe64c19e7df64390e94ba560006d32a561fd3579
[ "MIT" ]
8
2021-04-16T10:31:50.000Z
2021-05-31T03:48:52.000Z
# Three IA’s are conducted for a class of 10 students for the subject Maths. # The name, marks and USN are read from a file in.txt. Find the average of # the IA for each student and write the USN and average to a file out.txt. # Display the highest average of the class on the console with open("in.txt", "r") as inp...
36.038462
77
0.590181
# Three IA’s are conducted for a class of 10 students for the subject Maths. # The name, marks and USN are read from a file in.txt. Find the average of # the IA for each student and write the USN and average to a file out.txt. # Display the highest average of the class on the console with open("in.txt", "r") as inp...
0
0
0
efb8348e75f424b5ce684725233888c553e87260
8,930
py
Python
ashic/commands/simulateyeast.py
wmalab/ASHIC
f9dbee64ef13c7f10c25bc266209fb7fc430d39e
[ "MIT" ]
5
2021-01-28T21:51:55.000Z
2022-03-04T17:35:59.000Z
ashic/commands/simulateyeast.py
wmalab/ASHIC
f9dbee64ef13c7f10c25bc266209fb7fc430d39e
[ "MIT" ]
4
2020-09-01T06:23:49.000Z
2022-01-11T03:58:04.000Z
ashic/commands/simulateyeast.py
wmalab/ASHIC
f9dbee64ef13c7f10c25bc266209fb7fc430d39e
[ "MIT" ]
1
2020-12-06T07:03:50.000Z
2020-12-06T07:03:50.000Z
import os import json import numpy as np from ashic import simulation from ashic import structure from ashic.utils import find_closestlength_chrom, encodejson from ashic.utils import get_localinds, get_rdis, parse_localinds from ashic.utils import centroid_distance from ashic.commands.fit import initialx, create_model ...
38.995633
99
0.560022
import os import json import numpy as np from ashic import simulation from ashic import structure from ashic.utils import find_closestlength_chrom, encodejson from ashic.utils import get_localinds, get_rdis, parse_localinds from ashic.utils import centroid_distance from ashic.commands.fit import initialx, create_model ...
8,297
0
138
05f2ea61cd36ac167513516a2307a89ee3de2985
1,473
py
Python
solutions/0217-contains-duplicate/contains-duplicate.py
iFun/Project-G
d33b3b3c7bcee64f93dc2539fd9955a27f321d96
[ "MIT" ]
null
null
null
solutions/0217-contains-duplicate/contains-duplicate.py
iFun/Project-G
d33b3b3c7bcee64f93dc2539fd9955a27f321d96
[ "MIT" ]
null
null
null
solutions/0217-contains-duplicate/contains-duplicate.py
iFun/Project-G
d33b3b3c7bcee64f93dc2539fd9955a27f321d96
[ "MIT" ]
null
null
null
# Given an array of integers, find if the array contains any duplicates. # # Your function should return true if any value appears at least twice in the array, and it should return false if every element is distinct. # # Example 1: # # # Input: [1,2,3,1] # Output: true # # Example 2: # # # Input: [1,2,3,4] # Out...
17.535714
142
0.606246
# Given an array of integers, find if the array contains any duplicates. # # Your function should return true if any value appears at least twice in the array, and it should return false if every element is distinct. # # Example 1: # # # Input: [1,2,3,1] # Output: true # # Example 2: # # # Input: [1,2,3,4] # Out...
341
-6
49
bc3e21f237dd600b4b9a15b1a26af2981ee29aad
2,128
py
Python
app/metrics/client.py
TouchPal/guldan
74cc0bf687109d16c3eb94010b4cc25bd5c5bcc0
[ "BSD-3-Clause" ]
43
2017-12-27T13:20:15.000Z
2021-04-15T03:02:03.000Z
app/metrics/client.py
TouchPal/guldan
74cc0bf687109d16c3eb94010b4cc25bd5c5bcc0
[ "BSD-3-Clause" ]
null
null
null
app/metrics/client.py
TouchPal/guldan
74cc0bf687109d16c3eb94010b4cc25bd5c5bcc0
[ "BSD-3-Clause" ]
4
2018-03-28T08:46:07.000Z
2018-10-12T09:33:38.000Z
# -*- coding: utf-8 -*- import time import functools import socket import logging from .metricspy.groupmetrics import GroupMetrics from app import load_app_config logger = logging.getLogger(__name__) metrics_clients = {} HOSTNAME = socket.getfqdn()
30.84058
117
0.584586
# -*- coding: utf-8 -*- import time import functools import socket import logging from .metricspy.groupmetrics import GroupMetrics from app import load_app_config logger = logging.getLogger(__name__) metrics_clients = {} HOSTNAME = socket.getfqdn() class FakeGroupMetrics(object): def write_exc(self, name, value,...
1,743
10
122
76da7517e74e4fe0d0a7dea147637beb93fde4b1
6,970
py
Python
jina/__init__.py
mohamed--abdel-maksoud/jina
f55a2fb89cae1f5c5d03db682ebd7add0e7d58a4
[ "Apache-2.0" ]
null
null
null
jina/__init__.py
mohamed--abdel-maksoud/jina
f55a2fb89cae1f5c5d03db682ebd7add0e7d58a4
[ "Apache-2.0" ]
null
null
null
jina/__init__.py
mohamed--abdel-maksoud/jina
f55a2fb89cae1f5c5d03db682ebd7add0e7d58a4
[ "Apache-2.0" ]
null
null
null
""" Top-level module of Jina. The primary function of this module is to import all of the public Jina interfaces into a single place. The interfaces themselves are located in sub-modules, as described below. """ # DO SOME OS-WISE PATCHES import datetime as _datetime import os as _os import platform as _platform imp...
32.570093
122
0.726973
""" Top-level module of Jina. The primary function of this module is to import all of the public Jina interfaces into a single place. The interfaces themselves are located in sub-modules, as described below. """ # DO SOME OS-WISE PATCHES import datetime as _datetime import os as _os import platform as _platform imp...
0
0
0
e7961c5f43823cb180276e63bee8cf767d3ea8b5
75,260
py
Python
src/genie/libs/parser/iosxe/show_wlan.py
danielgraziano/genieparser
74d5e1ded9794561af1ac3284307c58365617673
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/show_wlan.py
danielgraziano/genieparser
74d5e1ded9794561af1ac3284307c58365617673
[ "Apache-2.0" ]
null
null
null
src/genie/libs/parser/iosxe/show_wlan.py
danielgraziano/genieparser
74d5e1ded9794561af1ac3284307c58365617673
[ "Apache-2.0" ]
null
null
null
import re from genie.metaparser import MetaParser from genie.metaparser.util.schemaengine import Any, Optional # ====================== # Schema for: # * 'show wlan summary' # ====================== class ShowWlanSummarySchema(MetaParser): """Schema for show wlan summary.""" schema = { "wlan_summar...
55.872309
196
0.498379
import re from genie.metaparser import MetaParser from genie.metaparser.util.schemaengine import Any, Optional # ====================== # Schema for: # * 'show wlan summary' # ====================== class ShowWlanSummarySchema(MetaParser): """Schema for show wlan summary.""" schema = { "wlan_summar...
68,220
0
54
b3afb93ed72248dc0eecddf59cfb296696006867
3,314
py
Python
example_app.py
garethr/mnml
30876c0a26ddee3e736c3ccca094ecb2250f9011
[ "MIT" ]
2
2016-05-09T13:58:38.000Z
2016-07-27T11:53:36.000Z
example_app.py
garethr/mnml
30876c0a26ddee3e736c3ccca094ecb2250f9011
[ "MIT" ]
null
null
null
example_app.py
garethr/mnml
30876c0a26ddee3e736c3ccca094ecb2250f9011
[ "MIT" ]
null
null
null
#!/usr/bin/env python from mnml import TokenBasedApplication, RegexBasedApplication, \ RequestHandler, HttpResponse, HttpResponseRedirect, \ development_server # a MNML application consists of a series of RequestHandlers which return # HttpResponse objects when methods are called. Th...
34.164948
74
0.637296
#!/usr/bin/env python from mnml import TokenBasedApplication, RegexBasedApplication, \ RequestHandler, HttpResponse, HttpResponseRedirect, \ development_server # a MNML application consists of a series of RequestHandlers which return # HttpResponse objects when methods are called. Th...
0
0
0
6b267beae5c010d77c5213de3663205fb00b003f
2,235
py
Python
urls.py
NexellCorp/infrastructure_server_linaro-license-protection
c328a1e023c60b443b2fca6349179104f7637077
[ "Net-SNMP", "Xnet", "Info-ZIP", "OML" ]
null
null
null
urls.py
NexellCorp/infrastructure_server_linaro-license-protection
c328a1e023c60b443b2fca6349179104f7637077
[ "Net-SNMP", "Xnet", "Info-ZIP", "OML" ]
null
null
null
urls.py
NexellCorp/infrastructure_server_linaro-license-protection
c328a1e023c60b443b2fca6349179104f7637077
[ "Net-SNMP", "Xnet", "Info-ZIP", "OML" ]
null
null
null
from django.conf import settings from django.conf.urls.defaults import patterns, include, url # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', url(r'^admin/', include(admin.site.urls)), # Use "linaro-openid" to allow pe...
33.863636
74
0.666219
from django.conf import settings from django.conf.urls.defaults import patterns, include, url # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns( '', url(r'^admin/', include(admin.site.urls)), # Use "linaro-openid" to allow pe...
0
0
0
f8e96160c49a25e10f1d1aa9fdbf711670774933
7,285
py
Python
src/gather/api.py
pygather/gather
dbe5a2109b66e40817f805f07aeb4d98a765d1b2
[ "MIT" ]
7
2017-06-02T03:56:44.000Z
2017-11-19T23:15:06.000Z
src/gather/api.py
pygather/gather
dbe5a2109b66e40817f805f07aeb4d98a765d1b2
[ "MIT" ]
3
2017-09-28T16:41:50.000Z
2017-11-14T02:53:03.000Z
src/gather/api.py
elcaminoreal/gather
dbe5a2109b66e40817f805f07aeb4d98a765d1b2
[ "MIT" ]
null
null
null
"""Gather -- Collect all your plugins Gather allows a way to register plugins. It features the ability to register the plugins from any module, in any package, in any distribution. A given module can register plugins of multiple types. In order to have anything registered from a package, it needs to declare that it s...
28.568627
99
0.619355
"""Gather -- Collect all your plugins Gather allows a way to register plugins. It features the ability to register the plugins from any module, in any package, in any distribution. A given module can register plugins of multiple types. In order to have anything registered from a package, it needs to declare that it s...
709
0
53
8481c7b9a2b60e392c3a9fd15bf0609835a1835a
1,117
py
Python
gmsh-4.2.2/demos/api/crack.py
Poofee/fastFEM
14eb626df973e2123604041451912c867ab7188c
[ "MIT" ]
4
2019-05-06T09:35:08.000Z
2021-05-14T16:26:45.000Z
onelab/share/doc/gmsh/demos/api/crack.py
Christophe-Foyer/pyFEA
344996d6b075ee4b2214283f0af8159d86d154fd
[ "MIT" ]
null
null
null
onelab/share/doc/gmsh/demos/api/crack.py
Christophe-Foyer/pyFEA
344996d6b075ee4b2214283f0af8159d86d154fd
[ "MIT" ]
1
2020-12-15T13:47:23.000Z
2020-12-15T13:47:23.000Z
import gmsh import sys gmsh.initialize(sys.argv) gmsh.fltk.initialize() gmsh.option.setNumber("General.Terminal", 1) gmsh.model.add("square with cracks") surf1 = 1 gmsh.model.occ.addRectangle(0, 0, 0, 1, 1, surf1) pt1 = gmsh.model.occ.addPoint(0.2, 0.2, 0) pt2 = gmsh.model.occ.addPoint(0.4, 0.4, 0) line1 = gmsh.mo...
26.595238
80
0.715309
import gmsh import sys gmsh.initialize(sys.argv) gmsh.fltk.initialize() gmsh.option.setNumber("General.Terminal", 1) gmsh.model.add("square with cracks") surf1 = 1 gmsh.model.occ.addRectangle(0, 0, 0, 1, 1, surf1) pt1 = gmsh.model.occ.addPoint(0.2, 0.2, 0) pt2 = gmsh.model.occ.addPoint(0.4, 0.4, 0) line1 = gmsh.mo...
0
0
0