hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
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
3
251
max_issues_repo_name
stringlengths
4
130
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
3
251
max_forks_repo_name
stringlengths
4
130
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.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
23944dce2a5292a5f4dccddbeb6c459b0db88881
821
py
Python
punk/aggregator/aggregateByDateTimeCategory.py
NewKnowledge/punk
53007a38433023f9a9f5cf39786b1c5a28f1f996
[ "MIT" ]
2
2017-08-23T16:58:01.000Z
2020-07-03T01:53:34.000Z
punk/aggregator/aggregateByDateTimeCategory.py
NewKnowledge/punk
53007a38433023f9a9f5cf39786b1c5a28f1f996
[ "MIT" ]
11
2017-08-18T17:19:21.000Z
2022-03-18T15:54:40.000Z
punk/aggregator/aggregateByDateTimeCategory.py
NewKnowledge/punk
53007a38433023f9a9f5cf39786b1c5a28f1f996
[ "MIT" ]
2
2017-09-11T19:38:04.000Z
2020-05-28T00:58:05.000Z
import pandas as pd from typing import List, NamedTuple from .timeseries import agg_by_category_by_date from primitive_interfaces.base import PrimitiveBase
28.310345
94
0.65408
2395f7861779117a4a46333dc411993e7c87448d
2,723
py
Python
algorithm/leetcode/2018-03-25.py
mhoonjeon/problemsolving
f47ff41b03ce406b26ea36be602c0aa14ac7ccf1
[ "MIT" ]
null
null
null
algorithm/leetcode/2018-03-25.py
mhoonjeon/problemsolving
f47ff41b03ce406b26ea36be602c0aa14ac7ccf1
[ "MIT" ]
null
null
null
algorithm/leetcode/2018-03-25.py
mhoonjeon/problemsolving
f47ff41b03ce406b26ea36be602c0aa14ac7ccf1
[ "MIT" ]
null
null
null
# 804. Unique Morse Code Words """ https://leetcode.com/problems/unique-morse-code-words/discuss/120675/\ Easy-and-Concise-Solution-C++JavaPython def uniqueMorseRepresentations(self, words): d = [".-", "-...", "-.-.", "-..", ".", "..-.", "--.", "....", "..", ".---", "-.-", ".-..", "--", "-.", "---"...
27.785714
79
0.480353
2396d1a675b3960ca8025853ba1b4a50d69159c9
19,779
py
Python
pygna/block_model.py
Gee-3/pygna
61f2128e918e423fef73d810e0c3af5761933096
[ "MIT" ]
32
2019-07-11T22:58:14.000Z
2022-03-04T19:34:55.000Z
pygna/block_model.py
Gee-3/pygna
61f2128e918e423fef73d810e0c3af5761933096
[ "MIT" ]
3
2021-05-24T14:03:13.000Z
2022-01-07T03:47:32.000Z
pygna/block_model.py
Gee-3/pygna
61f2128e918e423fef73d810e0c3af5761933096
[ "MIT" ]
5
2019-07-24T09:38:07.000Z
2021-12-30T09:20:20.000Z
import networkx as nx import matplotlib.pyplot as plt import matplotlib.patches as mpatches import numpy as np import logging from pygna import output from pygna.utils import YamlConfig import pandas as pd import random import string import seaborn as sns import pygna.output as output def generate_graph_from_sm(n_...
36.027322
258
0.590323
23971993e9893cd5f385730b84276166fd285f88
184
py
Python
printshops/apps.py
amid-africa/photoorder
407cf58b3dbd3e2144a8533f489889295f946776
[ "MIT" ]
null
null
null
printshops/apps.py
amid-africa/photoorder
407cf58b3dbd3e2144a8533f489889295f946776
[ "MIT" ]
null
null
null
printshops/apps.py
amid-africa/photoorder
407cf58b3dbd3e2144a8533f489889295f946776
[ "MIT" ]
null
null
null
from django.apps import AppConfig
18.4
34
0.684783
2398b8c755adf06d3f7f1e5cae4d4aedb1f1899b
443
py
Python
class/lect/Lect-17/pd1.py
MikenzieAlasca/F21-1010
a7c15b8d9bf84f316aa6921f6d8a588c513a22b8
[ "MIT" ]
5
2021-09-09T21:08:14.000Z
2021-12-14T02:30:52.000Z
class/lect/Lect-17/pd1.py
MikenzieAlasca/F21-1010
a7c15b8d9bf84f316aa6921f6d8a588c513a22b8
[ "MIT" ]
null
null
null
class/lect/Lect-17/pd1.py
MikenzieAlasca/F21-1010
a7c15b8d9bf84f316aa6921f6d8a588c513a22b8
[ "MIT" ]
8
2021-09-09T17:46:07.000Z
2022-02-08T22:41:35.000Z
import pandas as pd people_dict = { "weight": pd.Series([145, 182, 191],index=["joan", "bob", "mike"]), "birthyear": pd.Series([2002, 2000, 1999], index=["bob", "joan", "mike"], name="year"), "children": pd.Series([1, 2], index=["mike", "bob"]), "hobby": pd.Series(["Rock Climbing", "S...
31.642857
104
0.557562
239de3aa205a8c68e33dedf541996817e27acfa5
3,440
py
Python
virtualsmartcard-0.8/src/vpicc/virtualsmartcard/tests/SmartcardSAM_test.py
CMelas/foo
d7a34b24606c7b9ab04ea8c39a8b3716ca6255c1
[ "MIT" ]
1
2021-11-09T12:01:56.000Z
2021-11-09T12:01:56.000Z
virtualsmartcard-0.8/src/vpicc/virtualsmartcard/tests/SmartcardSAM_test.py
CMelas/foo
d7a34b24606c7b9ab04ea8c39a8b3716ca6255c1
[ "MIT" ]
null
null
null
virtualsmartcard-0.8/src/vpicc/virtualsmartcard/tests/SmartcardSAM_test.py
CMelas/foo
d7a34b24606c7b9ab04ea8c39a8b3716ca6255c1
[ "MIT" ]
null
null
null
# # Copyright (C) 2014 Dominik Oepen # # This file is part of virtualsmartcard. # # virtualsmartcard is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the Free # Software Foundation, either version 3 of the License, or (at your option) any # l...
40
79
0.670058
239ed9095bc55c203b6c4b8328d5c14492d59001
6,762
py
Python
test/phagesExperiment/runTableCases.py
edsaac/bioparticle
67e191329ef191fc539b290069524b42fbaf7e21
[ "MIT" ]
null
null
null
test/phagesExperiment/runTableCases.py
edsaac/bioparticle
67e191329ef191fc539b290069524b42fbaf7e21
[ "MIT" ]
1
2020-09-25T23:31:21.000Z
2020-09-25T23:31:21.000Z
test/phagesExperiment/runTableCases.py
edsaac/VirusTransport_RxSandbox
67e191329ef191fc539b290069524b42fbaf7e21
[ "MIT" ]
1
2021-09-30T05:00:58.000Z
2021-09-30T05:00:58.000Z
############################################################### # _ _ _ _ _ # | |__ (_) ___ _ __ __ _ _ __| |_(_) ___| | ___ # | '_ \| |/ _ \| '_ \ / _` | '__| __| |/ __| |/ _ \ # | |_) | | (_) | |_) | (_| | | | |_| | (__| | __/ # |_.__/|_|\___/| .__/ \__,_|_| \__|_|\___|_|\___...
34.676923
106
0.603963
239f83a7c0d314a200223629c25572a463600e23
593
py
Python
mongo_list_temp.py
ScottStanton/mqtt_temp_mongo_web
76d59910f132fea9724b86aebfcef04b61789b8d
[ "Unlicense" ]
null
null
null
mongo_list_temp.py
ScottStanton/mqtt_temp_mongo_web
76d59910f132fea9724b86aebfcef04b61789b8d
[ "Unlicense" ]
null
null
null
mongo_list_temp.py
ScottStanton/mqtt_temp_mongo_web
76d59910f132fea9724b86aebfcef04b61789b8d
[ "Unlicense" ]
null
null
null
#!/usr/bin/python3 # # This software is covered by The Unlicense license # import os, pymongo, sys if __name__ == '__main__': try: main() except KeyboardInterrupt: print('Interrupted') try: sys.exit(0) except SystemExit: os._exit(0)
17.969697
64
0.60371
23a0582a156a5116f9a3e62beef47135533e30c9
203
py
Python
tests/decisionreqdef/test_module.py
fasfoxcom/pycamunda
6bbebe1db40ce9fb29a9d420366e6dca1892df7b
[ "MIT" ]
null
null
null
tests/decisionreqdef/test_module.py
fasfoxcom/pycamunda
6bbebe1db40ce9fb29a9d420366e6dca1892df7b
[ "MIT" ]
null
null
null
tests/decisionreqdef/test_module.py
fasfoxcom/pycamunda
6bbebe1db40ce9fb29a9d420366e6dca1892df7b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-
22.555556
49
0.73399
23a2a97bb6db12d817c114dd0b13665cae319c12
2,185
py
Python
second/pytorch/models/fusion.py
RickOnEarth/pointpillars_based_CLOCs
c6d4576a151540200dac2354b00dc4ecce6ee72d
[ "MIT" ]
2
2022-01-05T08:41:38.000Z
2022-02-14T01:30:08.000Z
second/pytorch/models/fusion.py
RickOnEarth/pointpillars_based_CLOCs
c6d4576a151540200dac2354b00dc4ecce6ee72d
[ "MIT" ]
1
2022-03-28T03:23:36.000Z
2022-03-28T03:23:36.000Z
second/pytorch/models/fusion.py
RickOnEarth/pointpillars_based_CLOCs
c6d4576a151540200dac2354b00dc4ecce6ee72d
[ "MIT" ]
2
2022-01-07T05:56:43.000Z
2022-02-16T13:26:13.000Z
import time import torch from torch import nn from torch.nn import functional as F #import spconv import torchplus from torchplus.nn import Empty, GroupNorm, Sequential from torchplus.ops.array_ops import gather_nd, scatter_nd from torchplus.tools import change_default_args import sys if '/opt/ros/kinetic/lib/python2....
33.106061
92
0.556522
23a456677b9384e5a17f6de8dcdc1e93e2a745f9
3,001
py
Python
pdf_lines_gluer.py
serge-sotnyk/pdf-lines-gluer
b44284a28e4bce377d683ab8d6f820e704c630cb
[ "MIT" ]
1
2021-04-16T13:05:20.000Z
2021-04-16T13:05:20.000Z
pdf_lines_gluer.py
serge-sotnyk/pdf-lines-gluer
b44284a28e4bce377d683ab8d6f820e704c630cb
[ "MIT" ]
null
null
null
pdf_lines_gluer.py
serge-sotnyk/pdf-lines-gluer
b44284a28e4bce377d683ab8d6f820e704c630cb
[ "MIT" ]
2
2019-06-24T06:45:46.000Z
2019-06-28T19:43:20.000Z
import string from typing import List, Dict # inject code here # _HYPHEN_CHARS = { '\u002D', # HYPHEN-MINUS '\u00AD', # SOFT HYPHEN '\u2010', # HYPHEN '\u2011', # NON-BREAKING HYPHEN }
26.557522
97
0.55115
23a5398ab784fc5aa194816a75732cc159a8849f
1,241
py
Python
backend/thing/urls.py
thuong-lino/thing
e45d8f197896f4ab9b52dec0a85169396fff629a
[ "MIT" ]
null
null
null
backend/thing/urls.py
thuong-lino/thing
e45d8f197896f4ab9b52dec0a85169396fff629a
[ "MIT" ]
null
null
null
backend/thing/urls.py
thuong-lino/thing
e45d8f197896f4ab9b52dec0a85169396fff629a
[ "MIT" ]
null
null
null
from django.conf.urls import include from django.urls import path from django.contrib import admin from users.views import FacebookLogin import django_js_reverse.views from rest_framework.routers import DefaultRouter from common.routes import routes as common_routes router = DefaultRouter() routes = common_routes fo...
37.606061
85
0.706688
23a5e45f9981098530b74e9239812e4a0d27fb21
7,302
py
Python
core/dataset/data_loader.py
thuzhaowang/idn-solver
7da29ce0b0bd7e76023e1cae56e3d186b324a394
[ "MIT" ]
22
2021-10-11T02:31:52.000Z
2022-02-23T08:06:14.000Z
core/dataset/data_loader.py
xubin1994/idn-solver
6b5dcfd94f35cc118c5dee0f98401e4848e670e3
[ "MIT" ]
4
2021-12-02T02:36:30.000Z
2022-03-16T01:04:47.000Z
core/dataset/data_loader.py
xubin1994/idn-solver
6b5dcfd94f35cc118c5dee0f98401e4848e670e3
[ "MIT" ]
4
2022-01-20T03:12:23.000Z
2022-03-16T00:08:54.000Z
import numpy as np from path import Path import random import pickle import torch import os import cv2 def load_as_float(path): """Loads image""" im = cv2.imread(path) im = cv2.cvtColor(im, cv2.COLOR_BGR2RGB).astype(np.float32) return im
38.840426
161
0.65037
23a6372b0029d78dd5def2146734771fbbe2bd48
1,632
py
Python
server.py
hugoantunes/EchoServer
da4a6b8d8f4362e6770f767c8e75e80cac55d417
[ "MIT" ]
null
null
null
server.py
hugoantunes/EchoServer
da4a6b8d8f4362e6770f767c8e75e80cac55d417
[ "MIT" ]
null
null
null
server.py
hugoantunes/EchoServer
da4a6b8d8f4362e6770f767c8e75e80cac55d417
[ "MIT" ]
null
null
null
import Queue import select import socket from conf import ADDRESS, BACKLOG, SIZE server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server.setblocking(0) print 'starting up on %s port %s' % ADDRESS server.bind(ADDRESS) server.listen(BACKLOG) inputs = [server] outputs = [] message_queues = {} while inputs: ...
27.661017
76
0.578431
23a7e7e53ed3f920173ee73d17e3e8afad1d765f
3,813
py
Python
glue.py
mkechagia/android-survey
a1649c0fb9476fcc9fdf586ecde9da9a9a0138aa
[ "Apache-2.0" ]
1
2022-01-26T08:14:24.000Z
2022-01-26T08:14:24.000Z
glue.py
mkechagia/android-survey-tool
a1649c0fb9476fcc9fdf586ecde9da9a9a0138aa
[ "Apache-2.0" ]
null
null
null
glue.py
mkechagia/android-survey-tool
a1649c0fb9476fcc9fdf586ecde9da9a9a0138aa
[ "Apache-2.0" ]
null
null
null
import re import copy from collections import defaultdict from string import Template # initialize the dictionary for the methods with checked exceptions such as {fake method: real method} method_dict_checked = {'deleteRecord' : 'delete', \ 'editText' : 'setText_new', \ 'insertData' : 'insert_new', \ 'setLayout...
34.981651
104
0.710464
23a85b9835619dae1db6fad9d342a22f09ccf61a
272
py
Python
solved_bronze/num10952.py
ilmntr/white_study
51d69d122b07e9a0922dddb134bff4ec79077eb9
[ "MIT" ]
null
null
null
solved_bronze/num10952.py
ilmntr/white_study
51d69d122b07e9a0922dddb134bff4ec79077eb9
[ "MIT" ]
null
null
null
solved_bronze/num10952.py
ilmntr/white_study
51d69d122b07e9a0922dddb134bff4ec79077eb9
[ "MIT" ]
null
null
null
# a = 1 # b = 1 # while (not ((a==0) and (b==0))): # a, b = map(int, input().split()) # print(a+b) while True: a, b = map(int, input().split()) if a == 0 and b == 0: break print(a+b)
17
42
0.338235
23a8d2f8440fc0f4ab166887414f385e16797422
381
py
Python
mac.py
focusaurus/commander
4d511c9211ec6afcb2614e7b24b287c7c833c853
[ "MIT", "Unlicense" ]
3
2015-10-12T21:32:37.000Z
2021-09-16T16:51:03.000Z
mac.py
focusaurus/commander
4d511c9211ec6afcb2614e7b24b287c7c833c853
[ "MIT", "Unlicense" ]
null
null
null
mac.py
focusaurus/commander
4d511c9211ec6afcb2614e7b24b287c7c833c853
[ "MIT", "Unlicense" ]
null
null
null
from builtins import str from .helpers import run import logging import subprocess import functools import types logger = logging.getLogger("commander") def maestro(scriptId): """Run a Keyboard Maestro script by ID (more robust) or name.""" run( """osascript -e 'tell application "Keyboard Maestro Eng...
22.411765
74
0.67979
23a8d8b1cd48f9fd55d3941e62fe86313bca756e
764
py
Python
planning_system/db/schema/views/finance/v_ui_finance.py
jehboyes/planning_system
a415f1408ef344732498d2ffb111dfd187b9b50f
[ "MIT" ]
null
null
null
planning_system/db/schema/views/finance/v_ui_finance.py
jehboyes/planning_system
a415f1408ef344732498d2ffb111dfd187b9b50f
[ "MIT" ]
null
null
null
planning_system/db/schema/views/finance/v_ui_finance.py
jehboyes/planning_system
a415f1408ef344732498d2ffb111dfd187b9b50f
[ "MIT" ]
null
null
null
from planning_system.db.schema.views import _get_set_cols def definition(session): """ Return UI view. Complex view, which requires a dynamic pivot. """ pvt_list = _get_set_cols(session) sql = f""" SELECT costc, summary_code, summary, section, supersection, summary_order, sec_order, super...
38.2
120
0.700262
23abc12980cb0a7128b692a9097ad4b745fb655b
756
py
Python
python/torch_helpers/trace2jit.py
zhaohb/Forward
08c7622090ce0cdd32fe5d0b462cb63258ce0a75
[ "BSD-3-Clause" ]
1
2021-03-24T11:49:35.000Z
2021-03-24T11:49:35.000Z
python/torch_helpers/trace2jit.py
zhaohb/Forward
08c7622090ce0cdd32fe5d0b462cb63258ce0a75
[ "BSD-3-Clause" ]
null
null
null
python/torch_helpers/trace2jit.py
zhaohb/Forward
08c7622090ce0cdd32fe5d0b462cb63258ce0a75
[ "BSD-3-Clause" ]
null
null
null
import torch import torchvision.models as models ''' Description: convert torch module to JIT TracedModule. torch JIT TracedModule ''' if __name__ == "__main__": dummy_input = torch.randn(1, 3, 224, 224) # dummy_input is customized by user model = models.resnet18(pretrained=True) # model is cu...
28
81
0.718254
23ad1135866d4f8277494a12a0ed3be2f1311aa3
9,739
py
Python
CppSimShared/Python/cppsimdata.py
silicon-vlsi-org/eda-sue2Plus
83a2afa9c80308d5afe07a3fa0214d8412addb6d
[ "MIT" ]
1
2021-05-30T13:27:33.000Z
2021-05-30T13:27:33.000Z
CppSimShared/Python/cppsimdata.py
silicon-vlsi-org/eda-sue2Plus
83a2afa9c80308d5afe07a3fa0214d8412addb6d
[ "MIT" ]
null
null
null
CppSimShared/Python/cppsimdata.py
silicon-vlsi-org/eda-sue2Plus
83a2afa9c80308d5afe07a3fa0214d8412addb6d
[ "MIT" ]
null
null
null
# cppsimdata.py # written by Michael H. Perrott # with minor modifications by Doug Pastorello to work with both Python 2.7 and Python 3.4 # available at www.cppsim.com as part of the CppSim package # Copyright (c) 2013-2017 by Michael H. Perrott # This file is disributed under the MIT license (see Copying file) impo...
38.800797
149
0.629736
23aebda5722243d52ce15ff9c4cb52dbd5434d9f
1,217
py
Python
waferscreen/data_io/exceptions.py
chw3k5/WaferScreen
c0ca7fe939fe7cd0b722b7d6129b148c03a7505c
[ "Apache-2.0" ]
1
2021-07-30T19:06:07.000Z
2021-07-30T19:06:07.000Z
waferscreen/data_io/exceptions.py
chw3k5/WaferScreen
c0ca7fe939fe7cd0b722b7d6129b148c03a7505c
[ "Apache-2.0" ]
8
2021-04-22T20:47:48.000Z
2021-07-30T19:06:01.000Z
waferscreen/data_io/exceptions.py
chw3k5/WaferScreen
c0ca7fe939fe7cd0b722b7d6129b148c03a7505c
[ "Apache-2.0" ]
null
null
null
# Lambda processing
30.425
101
0.758422
23b3590bb9d68aac5032da0773011d5e1741a6b6
5,977
py
Python
notify/handlers.py
marzocchi/iterm-notify
5e587213ca89c0361a39c785fa4560fda275052f
[ "MIT" ]
28
2019-12-01T21:45:28.000Z
2021-05-05T17:46:09.000Z
notify/handlers.py
marzocchi/iterm-notify
5e587213ca89c0361a39c785fa4560fda275052f
[ "MIT" ]
null
null
null
notify/handlers.py
marzocchi/iterm-notify
5e587213ca89c0361a39c785fa4560fda275052f
[ "MIT" ]
2
2020-08-04T12:55:04.000Z
2020-12-20T22:23:47.000Z
import logging from datetime import datetime from typing import List from notify.backends import BackendFactory from notify.commands import Command from notify.config import Config, Stack from notify.notifications import Factory, Notification from notify.strategies import StrategyFactory
42.091549
115
0.736657
23b5a122ef2746145b44e7be72e1b2d49508e86c
254
py
Python
submissions/Coomber/myLogic.py
omarmartinez97/aima-python
c8d5aa86382fb72e9ddec4938706599fee439bbb
[ "MIT" ]
null
null
null
submissions/Coomber/myLogic.py
omarmartinez97/aima-python
c8d5aa86382fb72e9ddec4938706599fee439bbb
[ "MIT" ]
null
null
null
submissions/Coomber/myLogic.py
omarmartinez97/aima-python
c8d5aa86382fb72e9ddec4938706599fee439bbb
[ "MIT" ]
null
null
null
technology = { 'kb': ''' Oculus(rift) HTC(vive) VR(Zuck, rift) VR(Gabe, vive) (Oculus(O) & HTC(H)) ==> Dominates(H, O) (VR(V)) ==> Technology(T) ''', 'queries':''' VR(x) Dominates(x, y) ''', } Examples = { 'technology': technology, }
14.111111
40
0.527559
23ba2ecb3b446799d3bd04447ada1a6c88421c82
8,113
py
Python
sdk/python/feast/loaders/ingest.py
wzpy/feast
06fe09b7047fe370cbf63555cec1ba820f1e7267
[ "Apache-2.0" ]
1
2019-12-12T13:21:56.000Z
2019-12-12T13:21:56.000Z
sdk/python/feast/loaders/ingest.py
wzpy/feast
06fe09b7047fe370cbf63555cec1ba820f1e7267
[ "Apache-2.0" ]
null
null
null
sdk/python/feast/loaders/ingest.py
wzpy/feast
06fe09b7047fe370cbf63555cec1ba820f1e7267
[ "Apache-2.0" ]
null
null
null
import logging import multiprocessing import os import time from functools import partial from multiprocessing import Process, Queue, Pool from typing import Iterable import pandas as pd import pyarrow as pa from feast.feature_set import FeatureSet from feast.type_map import convert_dict_to_proto_values from feast.type...
31.815686
103
0.646986
23bb7ae2de638bcc64e1ae2469bf78db888b942c
389
py
Python
1stRound/Easy/389 Find the Difference/Counter.py
ericchen12377/Leetcode-Algorithm-Python
eb58cd4f01d9b8006b7d1a725fc48910aad7f192
[ "MIT" ]
2
2020-04-24T18:36:52.000Z
2020-04-25T00:15:57.000Z
1stRound/Easy/389 Find the Difference/Counter.py
ericchen12377/Leetcode-Algorithm-Python
eb58cd4f01d9b8006b7d1a725fc48910aad7f192
[ "MIT" ]
null
null
null
1stRound/Easy/389 Find the Difference/Counter.py
ericchen12377/Leetcode-Algorithm-Python
eb58cd4f01d9b8006b7d1a725fc48910aad7f192
[ "MIT" ]
null
null
null
import collections s = "abcd" t = "abcde" p = Solution() print(p.findTheDifference(s,t))
24.3125
71
0.539846
23bbe8dfe70d77ea6c966fa54a0f12dbc414a437
16,580
py
Python
sdk/python/pulumi_azure/lb/backend_address_pool_address.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
109
2018-06-18T00:19:44.000Z
2022-02-20T05:32:57.000Z
sdk/python/pulumi_azure/lb/backend_address_pool_address.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
663
2018-06-18T21:08:46.000Z
2022-03-31T20:10:11.000Z
sdk/python/pulumi_azure/lb/backend_address_pool_address.py
henriktao/pulumi-azure
f1cbcf100b42b916da36d8fe28be3a159abaf022
[ "ECL-2.0", "Apache-2.0" ]
41
2018-07-19T22:37:38.000Z
2022-03-14T10:56:26.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
47.643678
282
0.68076
23bd05e550888fff887e56ad22915b9704444c37
4,136
py
Python
submission.py
Amar1729/Liked-Saved-Image-Downloader
48c17d8cb0cdce3bf7ebab16729510be11f51013
[ "MIT" ]
60
2015-12-04T20:11:23.000Z
2019-03-17T20:00:56.000Z
submission.py
Amar1729/Liked-Saved-Image-Downloader
48c17d8cb0cdce3bf7ebab16729510be11f51013
[ "MIT" ]
68
2019-03-22T01:07:32.000Z
2021-07-02T04:48:57.000Z
submission.py
Amar1729/Liked-Saved-Image-Downloader
48c17d8cb0cdce3bf7ebab16729510be11f51013
[ "MIT" ]
19
2015-09-15T17:30:29.000Z
2019-03-17T18:05:30.000Z
# -*- coding: utf-8 -*- import pickle import os # third-party imports import jsonpickle def writeOutSubmissionsAsJson(redditList, file): file.write('{\n'.encode('utf8')) for submission in redditList: outputString = submission.getJson() + u',\n' file.write(outputString.encode('utf8')) file...
30.637037
100
0.604691
23bd7796ce5dbbe94cd644365987adb6f71698db
191
py
Python
mtga_event_prize_level.py
everybodyeverybody/mtga_earnings_calculator
4be67e37299c122eba110eb07308426d8078c645
[ "MIT" ]
null
null
null
mtga_event_prize_level.py
everybodyeverybody/mtga_earnings_calculator
4be67e37299c122eba110eb07308426d8078c645
[ "MIT" ]
null
null
null
mtga_event_prize_level.py
everybodyeverybody/mtga_earnings_calculator
4be67e37299c122eba110eb07308426d8078c645
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.7 from decimal import Decimal from collections import namedtuple EventPrizeLevel = namedtuple( "EventPrizeLevel", ["packs", "gems", "gold"], defaults=[0, 0, 0], )
23.875
69
0.712042
23be2b4e5eb31b3f80e1bec885f51c83e38a6703
621
py
Python
mundo_1/desafios/desafio_028.py
lvfds/Curso_Python3
1afb7706553a1d21d3d97e061144c5f019ca9391
[ "MIT" ]
null
null
null
mundo_1/desafios/desafio_028.py
lvfds/Curso_Python3
1afb7706553a1d21d3d97e061144c5f019ca9391
[ "MIT" ]
null
null
null
mundo_1/desafios/desafio_028.py
lvfds/Curso_Python3
1afb7706553a1d21d3d97e061144c5f019ca9391
[ "MIT" ]
null
null
null
""" Escreva um programa que faa o computador 'Pensar' em um nmero inteiro entre 0 e 5 e pea para o usurio tentar descobrir qual foi o nmero escolhido pelo computador. """ from random import randint numero_gerado_aleatoriamente = randint(0,5) numero_digitado_pelo_usuario = int(input('Adivinhe qual nmero estou...
38.8125
107
0.772947
23be77dcebe4a2a83f67827319e9327e25df75de
1,699
py
Python
exp/noise_features/models.py
WilliamCCHuang/GraphLIME
0f89bd67865c0b4b5a93becbc03273e55c15fc68
[ "MIT" ]
38
2020-06-07T14:44:11.000Z
2022-03-08T06:19:49.000Z
exp/noise_features/models.py
WilliamCCHuang/GraphLIME
0f89bd67865c0b4b5a93becbc03273e55c15fc68
[ "MIT" ]
9
2020-10-22T02:38:01.000Z
2022-03-15T09:53:30.000Z
exp/noise_features/models.py
WilliamCCHuang/GraphLIME
0f89bd67865c0b4b5a93becbc03273e55c15fc68
[ "MIT" ]
6
2021-03-04T21:32:34.000Z
2021-12-24T05:58:35.000Z
import torch.nn as nn import torch.nn.functional as F from torch_geometric.nn import GCNConv, GATConv
33.313725
116
0.575633
23c09d19f8336af168a12e16ec8d400bf72a904d
7,740
py
Python
nscl/nn/scene_graph/scene_graph.py
OolongQian/NSCL-PyTorch-Release
4cf0a633ceeaa9d221d66e066ef7892c04cdf9eb
[ "MIT" ]
null
null
null
nscl/nn/scene_graph/scene_graph.py
OolongQian/NSCL-PyTorch-Release
4cf0a633ceeaa9d221d66e066ef7892c04cdf9eb
[ "MIT" ]
null
null
null
nscl/nn/scene_graph/scene_graph.py
OolongQian/NSCL-PyTorch-Release
4cf0a633ceeaa9d221d66e066ef7892c04cdf9eb
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # File : scene_graph.py # Author : Jiayuan Mao # Email : maojiayuan@gmail.com # Date : 07/19/2018 # # This file is part of NSCL-PyTorch. # Distributed under terms of the MIT license. """ Scene Graph generation. """ import os import torch import torch.nn as nn impo...
47.484663
120
0.588889
23c22b89349457ba83481e99d719de420d9ae033
645
py
Python
sitemapparser/base_data.py
frasy/site-map-parser
7648b50a1e15777cf82a6916ef5cbb149c5e99df
[ "MIT" ]
1
2021-02-11T10:03:42.000Z
2021-02-11T10:03:42.000Z
sitemapparser/base_data.py
frasy/site-map-parser
7648b50a1e15777cf82a6916ef5cbb149c5e99df
[ "MIT" ]
2
2020-02-24T11:52:51.000Z
2021-07-05T19:38:55.000Z
sitemapparser/base_data.py
frasy/site-map-parser
7648b50a1e15777cf82a6916ef5cbb149c5e99df
[ "MIT" ]
4
2020-02-10T14:49:41.000Z
2021-05-07T14:41:32.000Z
import re from abc import ABCMeta from dateutil import parser
22.241379
77
0.615504
23c2c0ad760da305cb104343e55a702bf05d28ce
630
py
Python
nomad/tests/core/test_shortest_path_solver.py
romilbhardwaj/nomad
c6a8289872bfd07d1aa0b913f0aee7a2fccd5bf1
[ "MIT" ]
2
2019-02-06T19:47:48.000Z
2019-10-30T07:30:14.000Z
nomad/tests/core/test_shortest_path_solver.py
romilbhardwaj/nomad
c6a8289872bfd07d1aa0b913f0aee7a2fccd5bf1
[ "MIT" ]
6
2019-03-21T18:29:04.000Z
2019-04-11T18:31:34.000Z
nomad/tests/core/test_shortest_path_solver.py
romilbhardwaj/nomad
c6a8289872bfd07d1aa0b913f0aee7a2fccd5bf1
[ "MIT" ]
null
null
null
import unittest import networkx as nx from core.placement.spsolver import DPShortestPathSolver if __name__ == '__main__': unittest.main()
30
113
0.680952
23c38e57ef816e8a8c15f2598a7fb8639340906e
1,285
py
Python
Leetcode/medium/integer-break.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
6
2021-07-29T03:26:20.000Z
2022-01-28T15:11:45.000Z
Leetcode/medium/integer-break.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
2
2021-09-30T09:47:23.000Z
2022-01-31T03:08:24.000Z
Leetcode/medium/integer-break.py
jen-sjen/data-structures-basics-leetcode
addac32974b16e0a37aa60c210ab7820b349b279
[ "MIT" ]
5
2021-08-10T06:41:11.000Z
2022-01-29T17:50:20.000Z
""" # INTEGER BREAK Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum product you can get. Example 1: Input: 2 Output: 1 Explanation: 2 = 1 + 1, 1 1 = 1. Example 2: Input: 10 Output: 36 Explanation: 10 = 3 + 3 + 4, 3...
26.770833
167
0.525292
23c54e92e07439e85887d70b0a443815fb516d17
1,112
py
Python
setup.py
daien/camocomp
aa2c1b6dd2cfe1eb166047b52d75ade5b6b8b554
[ "BSD-3-Clause" ]
27
2015-03-06T05:50:35.000Z
2021-03-01T07:54:03.000Z
setup.py
daien/camocomp
aa2c1b6dd2cfe1eb166047b52d75ade5b6b8b554
[ "BSD-3-Clause" ]
2
2015-02-05T14:59:07.000Z
2016-02-19T00:18:52.000Z
setup.py
daien/camocomp
aa2c1b6dd2cfe1eb166047b52d75ade5b6b8b554
[ "BSD-3-Clause" ]
13
2015-01-25T12:43:42.000Z
2019-11-25T17:46:42.000Z
#!/usr/bin/env python from distutils.core import setup SHORT_DESCR = "CAmera MOtion COMPensation using image stiching techniques to generate stabilized videos" try: LONG_DESCR = open('README.rst').read() except IOError: LONG_DESCR = SHORT_DESCR setup( name='camocomp', version='0.1', author='Adri...
30.054054
104
0.660072
23c622f1dbca6b4b9f0f05bf93b50ad3b73a9109
408
py
Python
qiang00_before_project/qiang02_the_template/q02_add_template_filter.py
13528770807/flask_project
2930db1d59763b155f758ad4061a70d413bfc34d
[ "MIT" ]
null
null
null
qiang00_before_project/qiang02_the_template/q02_add_template_filter.py
13528770807/flask_project
2930db1d59763b155f758ad4061a70d413bfc34d
[ "MIT" ]
null
null
null
qiang00_before_project/qiang02_the_template/q02_add_template_filter.py
13528770807/flask_project
2930db1d59763b155f758ad4061a70d413bfc34d
[ "MIT" ]
null
null
null
from flask import Flask, render_template app = Flask(__name__) # app.add_template_filter(li_reverse, 'li_rv') # if __name__ == "__main__": app.run(debug=True)
17
59
0.647059
23c6a65b4e2832bc68e0d04d1fcc2bd1ed8f0280
801
py
Python
smps/rcmod.py
BenjiStomps/py-smps
c449bbfcd748203630bc0aecf2552c8d836f827c
[ "MIT" ]
16
2017-02-22T02:26:41.000Z
2021-04-05T10:28:02.000Z
smps/rcmod.py
BenjiStomps/py-smps
c449bbfcd748203630bc0aecf2552c8d836f827c
[ "MIT" ]
22
2017-02-27T21:50:45.000Z
2021-05-21T02:31:35.000Z
smps/rcmod.py
BenjiStomps/py-smps
c449bbfcd748203630bc0aecf2552c8d836f827c
[ "MIT" ]
8
2017-09-30T09:50:44.000Z
2021-05-20T22:29:54.000Z
"""""" import matplotlib as mpl __all__ = ["set"] def set(tick_scale=1, rc=dict()): """ Control plot style and scaling using seaborn and the matplotlib rcParams interface. :param tick_scale: A scaler number controling the spacing on tick marks, defaults to 1. :type tick_scale: floa...
26.7
62
0.601748
23c7aeb8b7efffbb30d83d454153984dd31f2ff4
169
py
Python
Chapter 04/Chap04_Example4.28.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
Chapter 04/Chap04_Example4.28.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
Chapter 04/Chap04_Example4.28.py
Anancha/Programming-Techniques-using-Python
e80c329d2a27383909d358741a5cab03cb22fd8b
[ "MIT" ]
null
null
null
# M1 myresult = mul1(3) print(myresult(7)) #M-2 mul = lambda a = 3: (lambda b: a*b) myres = mul() print(myres) print(myres(7))
14.083333
35
0.633136
23c87c4cfb4e5c6fd8c9ed42a1f9fee075d07137
414
py
Python
tools/generate_taint_models/parameter.py
terrorizer1980/pyre-check
16659c7f6f19f3c364ba3a56e6c582371a8ff348
[ "MIT" ]
1
2020-08-08T16:01:55.000Z
2020-08-08T16:01:55.000Z
tools/generate_taint_models/parameter.py
terrorizer1980/pyre-check
16659c7f6f19f3c364ba3a56e6c582371a8ff348
[ "MIT" ]
4
2022-02-15T02:42:33.000Z
2022-02-28T01:30:07.000Z
tools/generate_taint_models/parameter.py
terrorizer1980/pyre-check
16659c7f6f19f3c364ba3a56e6c582371a8ff348
[ "MIT" ]
1
2020-11-22T12:08:51.000Z
2020-11-22T12:08:51.000Z
from enum import Enum, auto from typing import NamedTuple, Optional
21.789474
49
0.611111
23c9d0fc017e203c468d9f46add866be9898f0bd
2,961
py
Python
abqPython_SvM_3_SaveODB.py
jtipton2/abaqusSignedvM
83f0577b6a3eab6d3c86a46ae110a94a7075981c
[ "BSD-3-Clause" ]
2
2022-03-16T13:50:21.000Z
2022-03-27T15:14:09.000Z
abqPython_SvM_3_SaveODB.py
jtipton2/abaqusSignedvM
83f0577b6a3eab6d3c86a46ae110a94a7075981c
[ "BSD-3-Clause" ]
null
null
null
abqPython_SvM_3_SaveODB.py
jtipton2/abaqusSignedvM
83f0577b6a3eab6d3c86a46ae110a94a7075981c
[ "BSD-3-Clause" ]
2
2021-07-18T03:10:12.000Z
2022-03-27T15:14:11.000Z
# -*- coding: utf-8 -*- import numpy as np from odbAccess import * from abaqusConstants import * filename = 'Job-4e-SS-Pulse' """ LOAD DATA =============================================================================== """ results = np.load(filename + '.npz') vonMisesMax = results['vonMisesMax'].transpose() vonMis...
37.961538
150
0.660588
23cbfc7fdcdcf980a0e3a9a727e48fece2483a0e
7,014
py
Python
ssh.py
unazed/Py-s-SH
c20d883f75f094c71386e62cbfa8197120c641fc
[ "MIT" ]
null
null
null
ssh.py
unazed/Py-s-SH
c20d883f75f094c71386e62cbfa8197120c641fc
[ "MIT" ]
null
null
null
ssh.py
unazed/Py-s-SH
c20d883f75f094c71386e62cbfa8197120c641fc
[ "MIT" ]
null
null
null
""" SSH reimplementation in Python, made by Unazed Spectaculum under the MIT license """ import socket import struct
44.675159
120
0.681637
23ce177acd70b69372b2d3dd196d4ee81ee251d0
1,140
py
Python
seriously/probably_prime.py
Mego/Seriously
07b256e4f35f5efec3b01434300f9ccc551b1c3e
[ "MIT" ]
104
2015-11-02T00:08:32.000Z
2022-02-17T23:17:14.000Z
seriously/probably_prime.py
Mego/Seriously
07b256e4f35f5efec3b01434300f9ccc551b1c3e
[ "MIT" ]
68
2015-11-09T05:33:24.000Z
2020-04-10T06:46:54.000Z
seriously/probably_prime.py
Mego/Seriously
07b256e4f35f5efec3b01434300f9ccc551b1c3e
[ "MIT" ]
25
2015-11-19T05:34:09.000Z
2021-07-20T13:54:03.000Z
import random def find_spelling(n): """ Finds d, r s.t. n-1 = 2^r * d """ r = 0 d = n - 1 # divmod used for large numbers quotient, remainder = divmod(d, 2) # while we can still divide 2's into n-1... while remainder != 1: r += 1 d = quotient # previo...
24.782609
89
0.497368
23ce1db523427cb59d90dd66571f9536a6eda982
4,859
py
Python
home/moz4r/Marty/marty_customInmoov.py
rv8flyboy/pyrobotlab
4e04fb751614a5cb6044ea15dcfcf885db8be65a
[ "Apache-2.0" ]
63
2015-02-03T18:49:43.000Z
2022-03-29T03:52:24.000Z
home/moz4r/Marty/marty_customInmoov.py
rv8flyboy/pyrobotlab
4e04fb751614a5cb6044ea15dcfcf885db8be65a
[ "Apache-2.0" ]
16
2016-01-26T19:13:29.000Z
2018-11-25T21:20:51.000Z
home/moz4r/Marty/marty_customInmoov.py
rv8flyboy/pyrobotlab
4e04fb751614a5cb6044ea15dcfcf885db8be65a
[ "Apache-2.0" ]
151
2015-01-03T18:55:54.000Z
2022-03-04T07:04:23.000Z
#MARTY I2C PI #SCRIPT BASED ON MATS WORK #SCRIPT PUSHED INSIDE inmoovCustom : https://github.com/MyRobotLab/inmoov/tree/master/InmoovScript raspi = Runtime.createAndStart("RasPi","RasPi") adaFruit16c = Runtime.createAndStart("AdaFruit16C","Adafruit16CServoDriver") adaFruit16c.setController("RasPi","1","0x40") # # This...
22.919811
98
0.787611
23ce6753d608fd795d0aebbaec8257e2469df9e3
7,214
py
Python
tabular_experiments_supp_mat.py
juliendelaunay35000/APE-Adapted_Post-Hoc_Explanations
991c4cf6153fafef4200732a5ef8ac93f1175f27
[ "MIT" ]
null
null
null
tabular_experiments_supp_mat.py
juliendelaunay35000/APE-Adapted_Post-Hoc_Explanations
991c4cf6153fafef4200732a5ef8ac93f1175f27
[ "MIT" ]
null
null
null
tabular_experiments_supp_mat.py
juliendelaunay35000/APE-Adapted_Post-Hoc_Explanations
991c4cf6153fafef4200732a5ef8ac93f1175f27
[ "MIT" ]
null
null
null
from sklearn import tree, svm from sklearn.neural_network import MLPClassifier from sklearn.multiclass import OneVsRestClassifier from sklearn.ensemble import GradientBoostingClassifier, RandomForestClassifier, VotingClassifier from sklearn.linear_model import LogisticRegression, RidgeClassifier from sklearn.naive_baye...
59.131148
182
0.624896
23ceb4be40ab14b96763eb535badca57463b0253
8,099
py
Python
summarise_results.py
MDBAuth/EWR_tool
5b05cf276822d97a38a32a5fc031209224a04fb3
[ "CC0-1.0" ]
5
2021-03-17T00:33:53.000Z
2022-03-07T18:16:25.000Z
summarise_results.py
MDBAuth/EWR_tool
5b05cf276822d97a38a32a5fc031209224a04fb3
[ "CC0-1.0" ]
null
null
null
summarise_results.py
MDBAuth/EWR_tool
5b05cf276822d97a38a32a5fc031209224a04fb3
[ "CC0-1.0" ]
2
2022-01-14T03:50:10.000Z
2022-02-14T00:45:56.000Z
import pandas as pd import numpy as np import data_inputs, evaluate_EWRs #-------------------------------------------------------------------------------------------------- def sum_events(events): '''returns a sum of events''' return int(round(events.sum(), 0)) def get_frequency(events): '''Returns the f...
47.087209
118
0.548463
23cf8e518be1c460ad577e7a202dfb564e60b6c9
247
py
Python
os/excel and csv/save pandas to xlsx file.py
pydeveloper510/Python
2e3cf5f9d132fbc6dd8c41a96166b6e879d86e0d
[ "MIT" ]
3
2021-04-23T08:04:14.000Z
2021-05-08T01:24:08.000Z
os/excel and csv/save pandas to xlsx file.py
pydeveloper510/Python
2e3cf5f9d132fbc6dd8c41a96166b6e879d86e0d
[ "MIT" ]
null
null
null
os/excel and csv/save pandas to xlsx file.py
pydeveloper510/Python
2e3cf5f9d132fbc6dd8c41a96166b6e879d86e0d
[ "MIT" ]
1
2021-05-08T01:24:46.000Z
2021-05-08T01:24:46.000Z
import pandas as pd writer = pd.ExcelWriter("data.xlsx", engine='xlsxwriter') df.to_excel(writer, sheet_name='Sheet1', index=False) # Get the xlsxwriter workbook and worksheet objects. workbook = writer.book worksheet = writer.sheets['Sheet1']
24.7
57
0.765182
23cf95b3c49a497e9b4fcecf5c43de957206031c
1,564
py
Python
setup.py
nitehawck/DevEnvManager
425b0d621be577fe73f22b4641f7099eac65669e
[ "MIT" ]
1
2016-05-16T23:13:47.000Z
2016-05-16T23:13:47.000Z
setup.py
nitehawck/DevEnvManager
425b0d621be577fe73f22b4641f7099eac65669e
[ "MIT" ]
41
2016-01-22T00:56:14.000Z
2016-05-12T14:38:37.000Z
setup.py
nitehawck/DevEnvManager
425b0d621be577fe73f22b4641f7099eac65669e
[ "MIT" ]
null
null
null
from setuptools import setup with open('README.rst') as f: readme = f.read() setup( name="dem", version="0.0.8", author="Ian Macaulay, Jeremy Opalach", author_email="ismacaul@gmail.com", url="http://www.github.com/nitehawck/dem", description="An agnostic library/package manager for setting...
31.28
103
0.575448
23d1de5c4b1de87a253332547b768f99517edb24
326
py
Python
lfs/core/admin.py
restless/django-lfs
4058f9d45b416ef2e8c28a87856ea0f1550b523d
[ "BSD-3-Clause" ]
1
2020-02-26T03:07:39.000Z
2020-02-26T03:07:39.000Z
lfs/core/admin.py
mxins/django-lfs
bf42ed80ce0e1ec96db6ab985adcc614ea79dfc8
[ "BSD-3-Clause" ]
null
null
null
lfs/core/admin.py
mxins/django-lfs
bf42ed80ce0e1ec96db6ab985adcc614ea79dfc8
[ "BSD-3-Clause" ]
null
null
null
# django imports from django.contrib import admin # lfs imports from lfs.core.models import Action from lfs.core.models import ActionGroup from lfs.core.models import Shop from lfs.core.models import Country admin.site.register(Shop) admin.site.register(Action) admin.site.register(ActionGroup) admin.site.register(Cou...
23.285714
39
0.819018
23d1f2c4f4ea5639727ded8d5757f9d66fc0cc39
13,959
py
Python
TarSync.py
waynegramlich/Fab
d4a23067a0354ffda106f7032df0501c8db24499
[ "MIT" ]
1
2022-03-20T12:25:34.000Z
2022-03-20T12:25:34.000Z
TarSync.py
waynegramlich/Fab
d4a23067a0354ffda106f7032df0501c8db24499
[ "MIT" ]
null
null
null
TarSync.py
waynegramlich/Fab
d4a23067a0354ffda106f7032df0501c8db24499
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """TarSync.py: Synchronize .fcstd and .tar files. Usage: TarSync.py [OPTIONS] [DIR] ... Recursively scans directories searching for `.fcstd`/`.FCstd` files and synchronizes them with associated `.tar` files. The current directory is used if no explicit directory or files are listed. Options: ...
45.617647
98
0.646321
23d1f9c2f299c304c7761f6ac8842a0f28c28618
20,325
py
Python
tcga_encoder/analyses/old/spearmans_input_cluster_from_hidden.py
tedmeeds/tcga_encoder
805f9a5bcc422a43faea45baa0996c88d346e3b4
[ "MIT" ]
2
2017-12-19T15:32:46.000Z
2018-01-12T11:24:24.000Z
tcga_encoder/analyses/old/spearmans_input_cluster_from_hidden.py
tedmeeds/tcga_encoder
805f9a5bcc422a43faea45baa0996c88d346e3b4
[ "MIT" ]
null
null
null
tcga_encoder/analyses/old/spearmans_input_cluster_from_hidden.py
tedmeeds/tcga_encoder
805f9a5bcc422a43faea45baa0996c88d346e3b4
[ "MIT" ]
null
null
null
from tcga_encoder.utils.helpers import * from tcga_encoder.data.data import * #from tcga_encoder.data.pathway_data import Pathways from tcga_encoder.data.hallmark_data import Pathways from tcga_encoder.definitions.tcga import * #from tcga_encoder.definitions.nn import * from tcga_encoder.definitions.locations import * ...
42.080745
222
0.667847
23d49ee738e43aa66d515d38988b95d1c1f66917
102
py
Python
src/django/tests/test_settings.py
segestic/django-builder
802e73241fe29ea1afb2df15a3addee87f39aeaa
[ "MIT" ]
541
2015-05-27T04:34:38.000Z
2022-03-23T18:00:16.000Z
src/django/tests/test_settings.py
segestic/django-builder
802e73241fe29ea1afb2df15a3addee87f39aeaa
[ "MIT" ]
85
2015-05-27T14:27:27.000Z
2022-02-27T18:51:08.000Z
src/django/tests/test_settings.py
segestic/django-builder
802e73241fe29ea1afb2df15a3addee87f39aeaa
[ "MIT" ]
129
2015-05-27T20:55:43.000Z
2022-03-23T14:18:07.000Z
from XXX_PROJECT_NAME_XXX.settings import * # noqa # Override any settings required for tests here
20.4
51
0.794118
23d6f93dd725259d766c98af0f0522d89793519e
3,808
py
Python
m2m/search/models.py
blampe/M2M
d8c025481ba961fe85b95f9e851a7678e08227c3
[ "MIT" ]
null
null
null
m2m/search/models.py
blampe/M2M
d8c025481ba961fe85b95f9e851a7678e08227c3
[ "MIT" ]
null
null
null
m2m/search/models.py
blampe/M2M
d8c025481ba961fe85b95f9e851a7678e08227c3
[ "MIT" ]
1
2018-06-27T14:05:43.000Z
2018-06-27T14:05:43.000Z
from django.db import models #from djangosphinx import SphinxSearch, SphinxRelation, SphinxQuerySet #import djangosphinx.apis.current as sphinxapi from advancedsearch.models import Movie, Episode, Song from browseNet.models import Host, Path # Create your models here.
39.666667
110
0.665966
23d7aa18934d135f4447648b4a864fe8e8b4a99c
1,790
py
Python
moods.py
henry232323/Discord-Pesterchum
70be67f3671b35aa6cbe6e4eb66a4a1c07707ce3
[ "MIT" ]
27
2017-01-31T03:28:26.000Z
2021-09-05T21:02:36.000Z
moods.py
henry232323/Discord-Pesterchum
70be67f3671b35aa6cbe6e4eb66a4a1c07707ce3
[ "MIT" ]
18
2018-02-03T16:44:18.000Z
2021-06-26T04:12:17.000Z
moods.py
henry232323/Discord-Pesterchum
70be67f3671b35aa6cbe6e4eb66a4a1c07707ce3
[ "MIT" ]
5
2017-09-23T15:53:08.000Z
2020-07-26T06:19:13.000Z
#!/usr/bin/env python3 # Copyright (c) 2016-2020, henry232323 # # 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, mo...
42.619048
76
0.701117
23d7e7b0e05f376311c1a1430b049eda79a5c69d
4,465
py
Python
reclass/utils/tests/test_refvalue.py
bbinet/reclass
c08b844b328fa0fe182db49dd423cc203a016ce9
[ "Artistic-2.0" ]
101
2015-01-09T14:59:57.000Z
2021-11-06T23:33:50.000Z
reclass/utils/tests/test_refvalue.py
bbinet/reclass
c08b844b328fa0fe182db49dd423cc203a016ce9
[ "Artistic-2.0" ]
48
2015-01-30T05:53:47.000Z
2019-03-21T23:17:40.000Z
reclass/utils/tests/test_refvalue.py
bbinet/reclass
c08b844b328fa0fe182db49dd423cc203a016ce9
[ "Artistic-2.0" ]
50
2015-01-30T08:56:07.000Z
2020-12-25T02:34:08.000Z
# # -*- coding: utf-8 -*- # # This file is part of reclass (http://github.com/madduck/reclass) # # Copyright 200714 martin f. krafft <madduck@madduck.net> # Released under the terms of the Artistic Licence 2.0 # from reclass.utils.refvalue import RefValue from reclass.defaults import PARAMETER_INTERPOLATION_SENTINELS...
34.882813
76
0.600224
23d88124e0abeec9041b9f813d746d7445479956
1,506
py
Python
backend/neuroflow/routes/mood.py
isamu-isozaki/neuroflow-challenge
ca29b8e48be4853317ab706acd4731ea0a8bab10
[ "MIT" ]
null
null
null
backend/neuroflow/routes/mood.py
isamu-isozaki/neuroflow-challenge
ca29b8e48be4853317ab706acd4731ea0a8bab10
[ "MIT" ]
null
null
null
backend/neuroflow/routes/mood.py
isamu-isozaki/neuroflow-challenge
ca29b8e48be4853317ab706acd4731ea0a8bab10
[ "MIT" ]
null
null
null
""" Author: Isamu Isozaki (isamu.website@gmail.com) Description: description Created: 2021-12-01T16:32:53.089Z Modified: !date! Modified By: modifier """ from flask import Blueprint, redirect, jsonify, url_for, request from neuroflow.repository import create_mood, get_authorized, load_moods_from_user from functools i...
30.12
82
0.616866
23d8fd0ae625c1772c3f3bb0a2d8ee76180f8da6
2,684
py
Python
capstone/upload_to_s3.py
slangenbach/udacity-de-nanodegree
ba885eb4c6fbce063e443375a89b92dbc46fa809
[ "MIT" ]
2
2020-03-07T23:32:41.000Z
2020-05-22T15:35:16.000Z
capstone/upload_to_s3.py
slangenbach/udacity-de-nanodegree
ba885eb4c6fbce063e443375a89b92dbc46fa809
[ "MIT" ]
1
2020-05-25T11:17:15.000Z
2020-05-26T06:58:37.000Z
capstone/upload_to_s3.py
slangenbach/udacity-de-nanodegree
ba885eb4c6fbce063e443375a89b92dbc46fa809
[ "MIT" ]
2
2020-03-31T13:00:01.000Z
2021-07-14T14:34:37.000Z
import logging import time from pathlib import Path from configparser import ConfigParser import boto3 from botocore.exceptions import ClientError def create_bucket(bucket_name: str, region: str = 'us-west-2'): """ Create S3 bucket https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-example-c...
31.209302
120
0.688897
23da034ad35f31e90c8e53d6592ca43cf2dabf3f
4,734
py
Python
Timer.py
Dark-Night-Base/MCDP
fbdba3c2b7a919d625067cbd473cdbe779af3256
[ "MIT" ]
null
null
null
Timer.py
Dark-Night-Base/MCDP
fbdba3c2b7a919d625067cbd473cdbe779af3256
[ "MIT" ]
null
null
null
Timer.py
Dark-Night-Base/MCDP
fbdba3c2b7a919d625067cbd473cdbe779af3256
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import time help_msg = '''------ aMCR f------ b!!time help f- c b!!time ct f- c b!!time timer [] f- c b!!time stopwatch start f- c b!!time stopwatch stop f- c --------------------------------''' no_input = '''------ a f------ c !!time help --------------------------------''' stop_T = False...
41.526316
114
0.444022
23dbf2b9d9cefc92e0075e49e75f8a00b52cb7f9
4,174
py
Python
core/loader.py
CrackerCat/ZetaSploit
4589d467c9fb81c1a5075cd43358b2df9b896530
[ "MIT" ]
3
2020-12-04T07:29:31.000Z
2022-01-30T10:14:41.000Z
core/loader.py
CrackerCat/ZetaSploit
4589d467c9fb81c1a5075cd43358b2df9b896530
[ "MIT" ]
null
null
null
core/loader.py
CrackerCat/ZetaSploit
4589d467c9fb81c1a5075cd43358b2df9b896530
[ "MIT" ]
1
2021-03-27T06:14:43.000Z
2021-03-27T06:14:43.000Z
#!/usr/bin/env python3 # # MIT License # # Copyright (c) 2020 EntySec # # 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,...
43.030928
115
0.598946
23dc4f684d9d5300357e5bf6d8fabca6e13f5585
8,556
py
Python
parameter_setting/parameters_setting_cropping_impact.py
MorganeAudrain/Calcium_new
1af0ab4f70b91d1ca55c6053112c1744b1da1bd3
[ "MIT" ]
null
null
null
parameter_setting/parameters_setting_cropping_impact.py
MorganeAudrain/Calcium_new
1af0ab4f70b91d1ca55c6053112c1744b1da1bd3
[ "MIT" ]
null
null
null
parameter_setting/parameters_setting_cropping_impact.py
MorganeAudrain/Calcium_new
1af0ab4f70b91d1ca55c6053112c1744b1da1bd3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Nov 5 @author: Melisa Maidana This script runs different cropping parameters, motion correct the cropped images using reasonable motion correction parameters that were previously selected by using the parameters_setting_motion_correction scripts, and ...
50.329412
161
0.661524
23dd6ab36e5a83840094cc404aedad771f6f9076
1,676
py
Python
src/data/energidataservice_api.py
titanbender/electricity-price-forecasting
c288a9b6d7489ac03ee800318539195bd1cd2650
[ "MIT" ]
1
2021-04-15T13:05:03.000Z
2021-04-15T13:05:03.000Z
src/data/energidataservice_api.py
titanbender/electricity-price-forecasting
c288a9b6d7489ac03ee800318539195bd1cd2650
[ "MIT" ]
1
2018-12-11T13:41:45.000Z
2018-12-11T14:15:15.000Z
src/data/energidataservice_api.py
titanbender/electricity-price-forecasting
c288a9b6d7489ac03ee800318539195bd1cd2650
[ "MIT" ]
1
2020-01-01T21:03:02.000Z
2020-01-01T21:03:02.000Z
import pandas as pd import json import urllib2 def download_nordpool(limit, output_file): ''' The method downloads the nordpool available data from www.energidataservice.dk and saves it in a csv file limit: Int, the number of maximum rows of data to download output_file: Str, the name of the output file ''' ...
37.244444
127
0.7679
23df352466c71a2286ba6b66bb76f8b89e0ba1ff
1,873
py
Python
models/cnn.py
amayuelas/NNKGReasoning
0e3623b344fd4e3088ece897f898ddbb1f80888d
[ "MIT" ]
1
2022-03-16T22:20:12.000Z
2022-03-16T22:20:12.000Z
models/cnn.py
amayuelas/NNKGReasoning
0e3623b344fd4e3088ece897f898ddbb1f80888d
[ "MIT" ]
2
2022-03-22T23:34:38.000Z
2022-03-24T17:35:53.000Z
models/cnn.py
amayuelas/NNKGReasoning
0e3623b344fd4e3088ece897f898ddbb1f80888d
[ "MIT" ]
null
null
null
from typing import Any import torch import torch.nn as nn import torch.nn.functional as F
31.745763
75
0.538708
23df5a83027200920168a92b6eedd813725d6db4
2,608
py
Python
students/K33421/Novikova Veronika/practice/warriors_project/warriors_app/views.py
aglaya-pill/ITMO_ICT_WebDevelopment_2021-2022
a63691317a72fb9b29ae537bc3d7766661458c22
[ "MIT" ]
null
null
null
students/K33421/Novikova Veronika/practice/warriors_project/warriors_app/views.py
aglaya-pill/ITMO_ICT_WebDevelopment_2021-2022
a63691317a72fb9b29ae537bc3d7766661458c22
[ "MIT" ]
null
null
null
students/K33421/Novikova Veronika/practice/warriors_project/warriors_app/views.py
aglaya-pill/ITMO_ICT_WebDevelopment_2021-2022
a63691317a72fb9b29ae537bc3d7766661458c22
[ "MIT" ]
null
null
null
from rest_framework import generics from rest_framework.response import Response from rest_framework.views import APIView from .serializers import *
29.636364
107
0.71434
23e0261a193fa6f445356c45a1780f878354e500
157
py
Python
utils/platform.py
dennisding/build
e9342c2f235f64a8e125b3e6208426f1c2a12346
[ "Apache-2.0" ]
null
null
null
utils/platform.py
dennisding/build
e9342c2f235f64a8e125b3e6208426f1c2a12346
[ "Apache-2.0" ]
null
null
null
utils/platform.py
dennisding/build
e9342c2f235f64a8e125b3e6208426f1c2a12346
[ "Apache-2.0" ]
null
null
null
# -*- encoding:utf-8 -*-
11.214286
24
0.687898
23e0459ade4fcfb40deaedb8969b8ab2785c8442
1,801
py
Python
drone/flight/driving/motor_dummy.py
dpm76/eaglebone
46403d03359a780f385ccb1f05b462869eddff89
[ "ISC" ]
null
null
null
drone/flight/driving/motor_dummy.py
dpm76/eaglebone
46403d03359a780f385ccb1f05b462869eddff89
[ "ISC" ]
18
2016-03-30T08:43:45.000Z
2017-03-27T11:14:17.000Z
drone/flight/driving/motor_dummy.py
dpm76/eaglebone
46403d03359a780f385ccb1f05b462869eddff89
[ "ISC" ]
2
2016-03-06T20:38:06.000Z
2019-09-10T14:46:35.000Z
''' Created on 19 de ene. de 2016 @author: david ''' import time
20.465909
110
0.494725
23e397535cfd73ea5daf63a3a67cc1be6978c490
29,136
py
Python
src/valr_python/ws_client.py
duncan-lumina/valr-python
9c94b76990416b4b709d507b538bd8265ed51312
[ "MIT" ]
6
2019-12-31T17:25:14.000Z
2021-12-15T14:30:05.000Z
src/valr_python/ws_client.py
duncan-lumina/valr-python
9c94b76990416b4b709d507b538bd8265ed51312
[ "MIT" ]
17
2020-01-03T00:03:30.000Z
2022-03-14T19:17:50.000Z
src/valr_python/ws_client.py
duncan-lumina/valr-python
9c94b76990416b4b709d507b538bd8265ed51312
[ "MIT" ]
6
2020-06-24T03:23:37.000Z
2021-12-17T14:20:46.000Z
import asyncio from typing import Callable from typing import Dict from typing import List from typing import Optional from typing import Type from typing import Union try: import simplejson as json except ImportError: import json import websockets from valr_python.enum import AccountEvent from valr_python.e...
30.864407
120
0.512699
23e4cf7747f358650ecc3229b90396e47c6f5137
110
py
Python
bagua/torch_api/compression.py
fossabot/bagua
2a8434159bfa502e61739b5eabd91dca57c9256c
[ "MIT" ]
1
2021-06-23T08:13:15.000Z
2021-06-23T08:13:15.000Z
bagua/torch_api/compression.py
fossabot/bagua
2a8434159bfa502e61739b5eabd91dca57c9256c
[ "MIT" ]
null
null
null
bagua/torch_api/compression.py
fossabot/bagua
2a8434159bfa502e61739b5eabd91dca57c9256c
[ "MIT" ]
null
null
null
from enum import Enum
15.714286
35
0.736364
23e64fd0f143ca1fd055ab9e432dcd782eb331eb
2,215
py
Python
emailer.py
dblossom/raffle-checker
807d33a305e836579a423986be2a7ff7c2d655e1
[ "MIT" ]
null
null
null
emailer.py
dblossom/raffle-checker
807d33a305e836579a423986be2a7ff7c2d655e1
[ "MIT" ]
null
null
null
emailer.py
dblossom/raffle-checker
807d33a305e836579a423986be2a7ff7c2d655e1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from database import Database from rafflecollector import RaffleCollector import os import smtplib, ssl from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart import schedule import time if __name__ == "__main__": e = Emailer() schedule.every().day.at("22:00...
31.642857
91
0.621219
23e79af618c8a287421e1a5d39cd45ed069fab6f
4,391
py
Python
website_handling/website_check.py
Dr3xler/CookieConsentChecker
816cdfb9d9dc741c57dbcd5e9c9ef59837196631
[ "MIT" ]
null
null
null
website_handling/website_check.py
Dr3xler/CookieConsentChecker
816cdfb9d9dc741c57dbcd5e9c9ef59837196631
[ "MIT" ]
3
2021-04-29T22:57:09.000Z
2021-05-03T15:32:39.000Z
website_handling/website_check.py
Dr3xler/CookieConsentChecker
816cdfb9d9dc741c57dbcd5e9c9ef59837196631
[ "MIT" ]
1
2021-08-29T09:53:09.000Z
2021-08-29T09:53:09.000Z
import os import json import shutil import time from pathlib import Path from sys import platform # TODO: (stackoverflow.com/question/17136514/how-to-get-3rd-party-cookies) # stackoverflow.com/questions/22200134/make-selenium-grab-all-cookies, add the selenium, phantomjs part to catch ALL cookies # TODO: Maybe save ...
35.128
125
0.662491
23e9be3b6c2cc45718ae9d2bebea994634002d02
925
py
Python
src/utils/import_lock.py
ThatOneAnimeGuy/seiso
f8ad20a0ec59b86b88149723eafc8e6d9f8be451
[ "BSD-3-Clause" ]
3
2021-11-08T05:23:08.000Z
2021-11-08T09:46:51.000Z
src/utils/import_lock.py
ThatOneAnimeGuy/seiso
f8ad20a0ec59b86b88149723eafc8e6d9f8be451
[ "BSD-3-Clause" ]
null
null
null
src/utils/import_lock.py
ThatOneAnimeGuy/seiso
f8ad20a0ec59b86b88149723eafc8e6d9f8be451
[ "BSD-3-Clause" ]
2
2021-11-08T05:23:12.000Z
2021-11-16T01:16:35.000Z
from flask import current_app from ..internals.database.database import get_cursor
35.576923
144
0.68973
23ecadb81a5ec6b2f9e0c728e946a750d6f1f36e
93
py
Python
modules/tankshapes/__init__.py
bullseyestudio/guns-game
3104c44e43ea7f000f6b9e756d622f98110d0a21
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
modules/tankshapes/__init__.py
bullseyestudio/guns-game
3104c44e43ea7f000f6b9e756d622f98110d0a21
[ "Apache-2.0", "BSD-3-Clause" ]
1
2018-11-21T04:50:57.000Z
2018-11-21T04:50:57.000Z
modules/tankshapes/__init__.py
bullseyestudio/guns-game
3104c44e43ea7f000f6b9e756d622f98110d0a21
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
""" Tank shapes package for Guns. This init file marks the package as a usable module. """
15.5
52
0.709677
23ece7de650d89db697b4f1ccb8b587a85d078b4
99
py
Python
jonathan/Aufgabe23/1.py
codingkrabbe/adventofcode
21965a9519e8c20ab154354fd4b4ad3c807b7b95
[ "MIT" ]
5
2021-12-01T21:44:22.000Z
2021-12-09T19:11:21.000Z
jonathan/Aufgabe23/1.py
codingkrabbe/adventofcode
21965a9519e8c20ab154354fd4b4ad3c807b7b95
[ "MIT" ]
null
null
null
jonathan/Aufgabe23/1.py
codingkrabbe/adventofcode
21965a9519e8c20ab154354fd4b4ad3c807b7b95
[ "MIT" ]
3
2021-12-01T21:41:20.000Z
2021-12-03T14:17:24.000Z
if __name__ == '__main__': main()
14.142857
46
0.565657
23ed67548a141b4172f60911a628a2325339dc44
4,468
py
Python
podstreamer.py
Swall0w/pymusic
73e08e6a5ad4c6d418a0074fc3a83be0896cf97c
[ "MIT" ]
1
2017-06-08T11:41:00.000Z
2017-06-08T11:41:00.000Z
podstreamer.py
Swall0w/pymusic
73e08e6a5ad4c6d418a0074fc3a83be0896cf97c
[ "MIT" ]
null
null
null
podstreamer.py
Swall0w/pymusic
73e08e6a5ad4c6d418a0074fc3a83be0896cf97c
[ "MIT" ]
null
null
null
import feedparser import vlc import argparse import sys import time import curses import wget if __name__ == '__main__': main()
30.813793
75
0.57744
23edadd6c1315ae3bef9cd266a3d92857c911930
229
py
Python
tfbs_footprinter-runner.py
thirtysix/TFBS_footprinting
f627e0a5186e00fe166dad46b21d9b2742b51760
[ "MIT" ]
null
null
null
tfbs_footprinter-runner.py
thirtysix/TFBS_footprinting
f627e0a5186e00fe166dad46b21d9b2742b51760
[ "MIT" ]
null
null
null
tfbs_footprinter-runner.py
thirtysix/TFBS_footprinting
f627e0a5186e00fe166dad46b21d9b2742b51760
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Convenience wrapper for running tfbs_footprinter directly from source tree.""" from tfbs_footprinter.tfbs_footprinter import main if __name__ == '__main__': main()
17.615385
81
0.694323
23ee7f3b59a96672f837686dde3019287c34f061
2,573
py
Python
metalfi/src/data/meta/importance/shap.py
CemOezcan/metalfi
d7a071eea0229ce621fa07e3474a26d43bfaac66
[ "MIT" ]
2
2019-12-05T07:57:14.000Z
2019-12-05T13:02:08.000Z
metalfi/src/data/meta/importance/shap.py
CemOezcan/metalfi
d7a071eea0229ce621fa07e3474a26d43bfaac66
[ "MIT" ]
31
2019-12-05T15:14:47.000Z
2020-12-04T14:37:46.000Z
metalfi/src/data/meta/importance/shap.py
CemOezcan/metalfi
d7a071eea0229ce621fa07e3474a26d43bfaac66
[ "MIT" ]
1
2020-12-04T13:40:11.000Z
2020-12-04T13:40:11.000Z
import shap from pandas import DataFrame from sklearn.preprocessing import StandardScaler from metalfi.src.data.meta.importance.featureimportance import FeatureImportance
34.306667
93
0.629227
23f06c21c858b67e6817ed29322c8b3b1f30395d
2,281
py
Python
jsportal_docsite/portal/markdown_extensions/__init__.py
jumpscale7/prototypes
a17f20aa203d4965708b6e0e3a34582f55baac30
[ "Apache-2.0" ]
null
null
null
jsportal_docsite/portal/markdown_extensions/__init__.py
jumpscale7/prototypes
a17f20aa203d4965708b6e0e3a34582f55baac30
[ "Apache-2.0" ]
null
null
null
jsportal_docsite/portal/markdown_extensions/__init__.py
jumpscale7/prototypes
a17f20aa203d4965708b6e0e3a34582f55baac30
[ "Apache-2.0" ]
null
null
null
""" Original code Copyright 2009 [Waylan Limberg](http://achinghead.com) All changes Copyright 2008-2014 The Python Markdown Project Changed by Mohammad Tayseer to add CSS classes to table License: [BSD](http://www.opensource.org/licenses/bsd-license.php) """ from __future__ import absolute_import from __future__ ...
35.092308
88
0.621657
23f14aa8cb681028e47a2e9707262f0b7d8d18f4
6,320
py
Python
NAS/single-path-one-shot/src/MNIST/test.py
naviocean/SimpleCVReproduction
61b43e3583977f42e6f91ef176ec5e1701e98d33
[ "Apache-2.0" ]
923
2020-01-11T06:36:53.000Z
2022-03-31T00:26:57.000Z
NAS/single-path-one-shot/src/MNIST/test.py
Twenty3hree/SimpleCVReproduction
9939f8340c54dbd69b0017cecad875dccf428f26
[ "Apache-2.0" ]
25
2020-02-27T08:35:46.000Z
2022-01-25T08:54:19.000Z
NAS/single-path-one-shot/src/MNIST/test.py
Twenty3hree/SimpleCVReproduction
9939f8340c54dbd69b0017cecad875dccf428f26
[ "Apache-2.0" ]
262
2020-01-02T02:19:40.000Z
2022-03-23T04:56:16.000Z
import argparse import json import logging import os import sys import time import cv2 import numpy as np import PIL import torch import torch.nn as nn import torchvision.datasets as datasets import torchvision.transforms as transforms from PIL import Image from angle import generate_angle # from cifar100_dataset im...
31.287129
91
0.612025
23f14e1f84f7c3d2bff9dca3e337c8e7cd4c2c5e
3,231
py
Python
examples/pixel/plot_0_image.py
DeepanshS/csdmpy
ae8d20dd09f217bb462af67a3145bb6fcb025def
[ "BSD-3-Clause" ]
7
2020-01-04T20:46:08.000Z
2021-05-26T21:09:25.000Z
examples/pixel/plot_0_image.py
deepanshs/csdmpy
bd4e138b10694491113b10177a89305697f1752c
[ "BSD-3-Clause" ]
16
2021-06-09T06:28:27.000Z
2022-03-01T18:12:33.000Z
examples/pixel/plot_0_image.py
deepanshs/csdmpy
bd4e138b10694491113b10177a89305697f1752c
[ "BSD-3-Clause" ]
1
2020-01-03T17:04:16.000Z
2020-01-03T17:04:16.000Z
# -*- coding: utf-8 -*- """ Image, 2D{3} datasets ^^^^^^^^^^^^^^^^^^^^^ """ # %% # The 2D{3} dataset is two dimensional, :math:`d=2`, with # a single three-component dependent variable, :math:`p=3`. # A common example from this subset is perhaps the RGB image dataset. # An RGB image dataset has two spatial dim...
31.990099
85
0.701021
23f1798fb64ee4b5169a0bf90b985ef75feb7390
76
py
Python
xdl/blueprints/__init__.py
mcrav/xdl
c120a1cf50a9b668a79b118700930eb3d60a9298
[ "MIT" ]
null
null
null
xdl/blueprints/__init__.py
mcrav/xdl
c120a1cf50a9b668a79b118700930eb3d60a9298
[ "MIT" ]
null
null
null
xdl/blueprints/__init__.py
mcrav/xdl
c120a1cf50a9b668a79b118700930eb3d60a9298
[ "MIT" ]
null
null
null
from .procedure import ( CrossCouplingBlueprint, GenericBlueprint )
15.2
27
0.75
23f2b2f6f97b3acdf979b2b92b12fa1475acc97b
141
py
Python
ex013 - Reajuste Salarial/app.py
daphi-ny/python-exercicios
0836fd1a134f07dc1cb29f7c31fce75fff65f963
[ "MIT" ]
null
null
null
ex013 - Reajuste Salarial/app.py
daphi-ny/python-exercicios
0836fd1a134f07dc1cb29f7c31fce75fff65f963
[ "MIT" ]
null
null
null
ex013 - Reajuste Salarial/app.py
daphi-ny/python-exercicios
0836fd1a134f07dc1cb29f7c31fce75fff65f963
[ "MIT" ]
null
null
null
s = float(input('Digite o valor do salrio: R$ ')) p = s + (s * 15 / 100) print('o salrio de R$ {} com mais 15% ficar {:.2f}'.format(s, p))
47
67
0.58156
23f63778d171661ca3379def8f64e54d84bf8d22
2,868
py
Python
analysis/files/files.py
mg98/arbitrary-data-on-blockchains
6450e638cf7c54f53ef247ff779770b22128a024
[ "MIT" ]
1
2022-03-21T01:51:44.000Z
2022-03-21T01:51:44.000Z
analysis/files/files.py
mg98/arbitrary-data-on-blockchains
6450e638cf7c54f53ef247ff779770b22128a024
[ "MIT" ]
null
null
null
analysis/files/files.py
mg98/arbitrary-data-on-blockchains
6450e638cf7c54f53ef247ff779770b22128a024
[ "MIT" ]
null
null
null
import codecs import sqlite3 import json from fnmatch import fnmatch from abc import ABC, abstractmethod
32.224719
132
0.709902
23f755b41ceb13c51fd1941958609398bf18c29d
3,615
py
Python
info/models/movie.py
wojciezki/movie_info
88f089e8eaa5310cf5b03f7aae4f6c9b871282f2
[ "MIT" ]
null
null
null
info/models/movie.py
wojciezki/movie_info
88f089e8eaa5310cf5b03f7aae4f6c9b871282f2
[ "MIT" ]
3
2020-02-11T23:47:00.000Z
2021-06-10T21:13:10.000Z
info/models/movie.py
wojciezki/movie_info
88f089e8eaa5310cf5b03f7aae4f6c9b871282f2
[ "MIT" ]
null
null
null
# Create your models here. import datetime from django.db import models from rest_framework.compat import MinValueValidator
41.079545
93
0.458645
23faddb427ccf2b4a51011515cdd3a2b5edefbe2
1,211
py
Python
examples/pymt-frostnumbermodel-multidim-parameter-study.py
csdms/dakotathon
6af575b0c21384b2a1ab51e26b6a08512313bd84
[ "MIT" ]
8
2019-09-11T12:59:57.000Z
2021-08-11T16:31:58.000Z
examples/pymt-frostnumbermodel-multidim-parameter-study.py
csdms/dakota
6af575b0c21384b2a1ab51e26b6a08512313bd84
[ "MIT" ]
66
2015-04-06T17:11:21.000Z
2019-02-03T18:09:52.000Z
examples/pymt-frostnumbermodel-multidim-parameter-study.py
csdms/dakota
6af575b0c21384b2a1ab51e26b6a08512313bd84
[ "MIT" ]
5
2015-03-24T22:39:34.000Z
2018-04-21T12:14:05.000Z
"""An example of using Dakota as a component with PyMT. This example requires a WMT executor with PyMT installed, as well as the CSDMS Dakota interface and FrostNumberModel installed as components. """ import os from pymt.components import MultidimParameterStudy, FrostNumberModel from dakotathon.utils import configur...
27.522727
68
0.721718
23fdbc64ade39f6aaca5e42eb2790bc7ac6b2823
4,427
py
Python
tensorflow/train_pretrained.py
sevakon/mobilenetv2
e6634da41c377ae1c76662d061e6b2b804a3b09c
[ "MIT" ]
1
2020-01-17T07:54:02.000Z
2020-01-17T07:54:02.000Z
tensorflow/train_pretrained.py
sevakon/mobilenetv2
e6634da41c377ae1c76662d061e6b2b804a3b09c
[ "MIT" ]
null
null
null
tensorflow/train_pretrained.py
sevakon/mobilenetv2
e6634da41c377ae1c76662d061e6b2b804a3b09c
[ "MIT" ]
null
null
null
from callback import ValidationHistory from dataloader import Dataloader from normalizer import Normalizer import tensorflow as tf import numpy as np import argparse if __name__ == '__main__': parser = argparse.ArgumentParser() # Required arguments parser.add_argument( "-f", "--folde...
33.793893
87
0.5733
23fe13301d5fe663179594a9c1c64fdce727026b
1,354
py
Python
source/test.py
valrus/alfred-org-mode-workflow
30f81772ad16519317ccb170d36782e387988633
[ "MIT" ]
52
2016-08-04T02:15:52.000Z
2021-12-20T20:33:07.000Z
source/test.py
valrus/alfred-org-mode-workflow
30f81772ad16519317ccb170d36782e387988633
[ "MIT" ]
3
2019-11-15T15:13:51.000Z
2020-11-25T10:42:34.000Z
source/test.py
valrus/alfred-org-mode-workflow
30f81772ad16519317ccb170d36782e387988633
[ "MIT" ]
9
2019-03-06T04:21:29.000Z
2021-08-16T02:28:33.000Z
# coding=utf-8 from orgmode_entry import OrgmodeEntry entry = u'#A Etwas machen:: DL: Morgen S: Heute Ausstellung am 23.09.2014 12:00 oder am Montag bzw. am 22.10 13:00 sollte man anschauen. ' org = OrgmodeEntry() # Use an absolute path org.inbox_file = '/Users/Alex/Documents/Planung/Planning/Inbox.org' org.delim...
33.02439
140
0.739291
23fead2b5260640c347d0b505721cb2630c98560
407
py
Python
25/00/2.py
pylangstudy/201706
f1cc6af6b18e5bd393cda27f5166067c4645d4d3
[ "CC0-1.0" ]
null
null
null
25/00/2.py
pylangstudy/201706
f1cc6af6b18e5bd393cda27f5166067c4645d4d3
[ "CC0-1.0" ]
70
2017-06-01T11:02:51.000Z
2017-06-30T00:35:32.000Z
25/00/2.py
pylangstudy/201706
f1cc6af6b18e5bd393cda27f5166067c4645d4d3
[ "CC0-1.0" ]
null
null
null
import gzip import bz2 import lzma s = b'witch which has which witches wrist watch' with open('2.txt', 'wb') as f: f.write(s) with gzip.open('2.txt.gz', 'wb') as f: f.write(s) with bz2.open('2.txt.bz2', 'wb') as f: f.write(s) with lzma.open('2.txt.xz', 'wb') as f: f.write(s) print('txt', len(s)) print('gz ', len(gzip...
25.4375
49
0.641278
23ff90db58dc31d3acc655b347ff8c32734fce8f
751
py
Python
timezones.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
timezones.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
timezones.py
rayjustinhuang/BitesofPy
03b694c5259ff607621419d9677c5caff90a6057
[ "MIT" ]
null
null
null
import pytz from datetime import datetime MEETING_HOURS = range(6, 23) # meet from 6 - 22 max TIMEZONES = set(pytz.all_timezones) def within_schedule(utc, *timezones): """Receive a utc datetime and one or more timezones and check if they are all within schedule (MEETING_HOURS)""" times = [] ...
25.033333
68
0.624501
9b000540f0f753d3e1bc63731ed866572a4a795c
450
py
Python
config.py
saurabhchardereal/kernel-tracker
60d53e6ae377925f8540f148b742869929337088
[ "MIT" ]
null
null
null
config.py
saurabhchardereal/kernel-tracker
60d53e6ae377925f8540f148b742869929337088
[ "MIT" ]
null
null
null
config.py
saurabhchardereal/kernel-tracker
60d53e6ae377925f8540f148b742869929337088
[ "MIT" ]
null
null
null
from os import sys, environ from tracker.__main__ import args # Name of the file to save kernel versions json DB_FILE_NAME = "data.json" # By default looks up in env for api and chat id or just put your stuff in here # directly if you prefer it that way BOT_API = environ.get("BOT_API") CHAT_ID = environ.get("CHAT_ID"...
28.125
79
0.717778
9b019d69f7dc7afa332c3b317d1c035ebf327b40
94
py
Python
dive_sites/apps.py
Scuba-Chris/dive_site_api
9c5f2a26e6c8a1e2eeaf6cd1b4174e764f83a6b6
[ "MIT" ]
null
null
null
dive_sites/apps.py
Scuba-Chris/dive_site_api
9c5f2a26e6c8a1e2eeaf6cd1b4174e764f83a6b6
[ "MIT" ]
7
2020-06-05T21:03:39.000Z
2021-09-22T18:33:33.000Z
dive_sites/apps.py
Scuba-Chris/dive_site_api
9c5f2a26e6c8a1e2eeaf6cd1b4174e764f83a6b6
[ "MIT" ]
null
null
null
from django.apps import AppConfig
15.666667
33
0.765957
9b02acdde4f64a083c7db9498cddd0e187f2c1df
615
py
Python
week9/tests/test_utils.py
zzsza/kyle-school
8cf6cffd3d86a25c29f914a9d4802cdb8e6dd478
[ "MIT" ]
189
2019-11-15T11:33:50.000Z
2022-03-27T08:23:35.000Z
week9/tests/test_utils.py
zzsza/kyle-school
8cf6cffd3d86a25c29f914a9d4802cdb8e6dd478
[ "MIT" ]
3
2020-05-29T03:26:32.000Z
2021-07-11T15:46:07.000Z
week9/tests/test_utils.py
zzsza/kyle-school
8cf6cffd3d86a25c29f914a9d4802cdb8e6dd478
[ "MIT" ]
39
2019-11-16T04:02:06.000Z
2022-03-21T04:18:14.000Z
# test_utils.py overwrite(-a !) import pytest import pandas as pd import datetime from utils import is_working_day, load_data
21.964286
59
0.747967
9b02d42862a5d0797afc71d43094512a70c96510
3,302
py
Python
Packs/dnstwist/Integrations/dnstwist/dnstwist.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/dnstwist/Integrations/dnstwist/dnstwist.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/dnstwist/Integrations/dnstwist/dnstwist.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import subprocess from CommonServerPython import * TWIST_EXE = '/dnstwist/dnstwist.py' if demisto.command() == 'dnstwist-domain-variations': KEYS_TO_MD = ["whois_updated", "whois_created", "dns_a", "dns_mx", "dns_ns"] DOMAIN = demisto.args()['domain'] LIMIT = int(demisto.args()['limit']) ...
35.891304
117
0.58934
9b036ad8294f9db8fecca4b31663a18176793718
595
py
Python
venv/Lib/site-packages/classutils/introspection.py
avim2809/CameraSiteBlocker
bfc0434e75e8f3f95c459a4adc86b7673200816e
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/classutils/introspection.py
avim2809/CameraSiteBlocker
bfc0434e75e8f3f95c459a4adc86b7673200816e
[ "Apache-2.0" ]
null
null
null
venv/Lib/site-packages/classutils/introspection.py
avim2809/CameraSiteBlocker
bfc0434e75e8f3f95c459a4adc86b7673200816e
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 import inspect def caller(frame=2): """ Returns the object that called the object that called this function. e.g. A calls B. B calls calling_object. calling object returns A. :param frame: 0 represents this function 1 represents the caller of this function (e.g. ...
24.791667
72
0.616807
9b049ff801a11852ac7c1f7e34a2e069aca68527
3,395
py
Python
test/test_resourcerequirements.py
noralsydmp/icetea
b486cdc8e0d2211e118f1f8211aa4d284ca02422
[ "Apache-2.0" ]
6
2018-08-10T17:11:10.000Z
2020-04-29T07:05:36.000Z
test/test_resourcerequirements.py
noralsydmp/icetea
b486cdc8e0d2211e118f1f8211aa4d284ca02422
[ "Apache-2.0" ]
58
2018-08-13T08:36:08.000Z
2021-07-07T08:32:52.000Z
test/test_resourcerequirements.py
noralsydmp/icetea
b486cdc8e0d2211e118f1f8211aa4d284ca02422
[ "Apache-2.0" ]
7
2018-08-10T12:53:18.000Z
2021-11-08T05:15:42.000Z
# pylint: disable=missing-docstring,protected-access """ Copyright 2017 ARM Limited 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 b...
38.146067
90
0.648895
9b04ad53449f706663e52db825a5918226304aab
321
py
Python
hadoop_example/reduce.py
hatbot-team/hatbot
e7fea42b5431cc3e93d9e484c5bb5232d8f2e981
[ "MIT" ]
1
2016-05-26T08:18:36.000Z
2016-05-26T08:18:36.000Z
hadoop_example/reduce.py
hatbot-team/hatbot
e7fea42b5431cc3e93d9e484c5bb5232d8f2e981
[ "MIT" ]
null
null
null
hadoop_example/reduce.py
hatbot-team/hatbot
e7fea42b5431cc3e93d9e484c5bb5232d8f2e981
[ "MIT" ]
null
null
null
#!/bin/python3 import sys prev = '' cnt = 0 for x in sys.stdin.readlines(): q, w = x.split('\t')[0], int(x.split('\t')[1]) if (prev == q): cnt += 1 else: if (cnt > 0): print(prev + '\t' + str(cnt)) prev = q cnt = w if (cnt > 0): print(prev + '\t' + str(cnt))...
17.833333
50
0.433022
9b076c62dfd81be9905f0f82e953e93e7d7c02e5
313
py
Python
covid19_id/pemeriksaan_vaksinasi/vaksinasi_harian.py
hexatester/covid19-id
8d8aa3f9092a40461a308f4db054ab4f95374849
[ "MIT" ]
null
null
null
covid19_id/pemeriksaan_vaksinasi/vaksinasi_harian.py
hexatester/covid19-id
8d8aa3f9092a40461a308f4db054ab4f95374849
[ "MIT" ]
null
null
null
covid19_id/pemeriksaan_vaksinasi/vaksinasi_harian.py
hexatester/covid19-id
8d8aa3f9092a40461a308f4db054ab4f95374849
[ "MIT" ]
null
null
null
import attr from covid19_id.utils import ValueInt
20.866667
43
0.782748
9b0792a063a2b49e22d50a2e57caac25388b1b3e
511
py
Python
tests/blockchain/test_hashing_and_proof.py
thecoons/blockchain
426ede04d058b5eb0e595fcf6e9c71d16605f9a7
[ "MIT" ]
null
null
null
tests/blockchain/test_hashing_and_proof.py
thecoons/blockchain
426ede04d058b5eb0e595fcf6e9c71d16605f9a7
[ "MIT" ]
null
null
null
tests/blockchain/test_hashing_and_proof.py
thecoons/blockchain
426ede04d058b5eb0e595fcf6e9c71d16605f9a7
[ "MIT" ]
null
null
null
import json import hashlib from .test_case.blockchain import BlockchainTestCase
26.894737
61
0.702544
9b0816140cf40f94ed1ecf980a99d990c62d409b
14,495
py
Python
xgbse/_kaplan_neighbors.py
gdmarmerola/xgboost-survival-embeddings
cb672d5c2bf09c7d8cbf9edf7807a153bce4db40
[ "Apache-2.0" ]
null
null
null
xgbse/_kaplan_neighbors.py
gdmarmerola/xgboost-survival-embeddings
cb672d5c2bf09c7d8cbf9edf7807a153bce4db40
[ "Apache-2.0" ]
null
null
null
xgbse/_kaplan_neighbors.py
gdmarmerola/xgboost-survival-embeddings
cb672d5c2bf09c7d8cbf9edf7807a153bce4db40
[ "Apache-2.0" ]
null
null
null
import warnings import numpy as np import pandas as pd import xgboost as xgb import scipy.stats as st from sklearn.neighbors import BallTree from xgbse._base import XGBSEBaseEstimator from xgbse.converters import convert_data_to_xgb_format, convert_y from xgbse.non_parametric import ( calculate_kaplan_vectorized,...
34.186321
135
0.635598
9b086dcb5153716593628ec1966115cfb5eef668
3,932
py
Python
homework_2/1.py
jelic98/raf_mu
8b965fa41d5f89eeea371ab7b8e15bd167325b5f
[ "Apache-2.0" ]
null
null
null
homework_2/1.py
jelic98/raf_mu
8b965fa41d5f89eeea371ab7b8e15bd167325b5f
[ "Apache-2.0" ]
null
null
null
homework_2/1.py
jelic98/raf_mu
8b965fa41d5f89eeea371ab7b8e15bd167325b5f
[ "Apache-2.0" ]
1
2021-05-30T15:26:52.000Z
2021-05-30T15:26:52.000Z
import math import numpy as np import pandas as pd import tensorflow as tf import datetime as dt import matplotlib.pyplot as plt import matplotlib.dates as mdates import warnings warnings.filterwarnings('ignore') # Hiperparametri epoch_max = 10 alpha_max = 0.025 alpha_min = 0.001 batch_size = 32 window_size = 14 test...
31.206349
95
0.694557
9b091fad5fab76f79772a42218911d8db0cd0709
420
py
Python
src/pretalx/submission/migrations/0053_reviewphase_can_tag_submissions.py
lili668668/pretalx
5ba2185ffd7c5f95254aafe25ad3de340a86eadb
[ "Apache-2.0" ]
418
2017-10-05T05:52:49.000Z
2022-03-24T09:50:06.000Z
src/pretalx/submission/migrations/0053_reviewphase_can_tag_submissions.py
lili668668/pretalx
5ba2185ffd7c5f95254aafe25ad3de340a86eadb
[ "Apache-2.0" ]
1,049
2017-09-16T09:34:55.000Z
2022-03-23T16:13:04.000Z
src/pretalx/submission/migrations/0053_reviewphase_can_tag_submissions.py
lili668668/pretalx
5ba2185ffd7c5f95254aafe25ad3de340a86eadb
[ "Apache-2.0" ]
155
2017-10-16T18:32:01.000Z
2022-03-15T12:48:33.000Z
# Generated by Django 3.1 on 2020-10-10 14:31 from django.db import migrations, models
22.105263
67
0.621429
9b09888d30cc7622a264796e061dbd4cba10dd9a
440
py
Python
zzzeeksphinx/theme.py
aidos/zzzeeksphinx
c0fa4be4d40752632e879ec109850caa316ec8af
[ "MIT" ]
3
2017-08-10T22:26:25.000Z
2017-09-10T16:07:23.000Z
zzzeeksphinx/theme.py
zzzeek/zzzeeksphinx
663f5c353e9c3ef3f9676384d429f504feaf20d3
[ "MIT" ]
9
2020-07-18T12:31:49.000Z
2021-10-08T15:19:43.000Z
zzzeeksphinx/theme.py
zzzeek/zzzeeksphinx
663f5c353e9c3ef3f9676384d429f504feaf20d3
[ "MIT" ]
1
2021-02-20T20:57:00.000Z
2021-02-20T20:57:00.000Z
from os import path package_dir = path.abspath(path.dirname(__file__))
25.882353
76
0.665909
9b0a82ae7938b94fafa2d863a1f8c7ee8913dbbc
2,674
py
Python
playground/toy_grads_compositional.py
TUIlmenauAMS/nca_mss
f0deb4b0acd0e317fb50340a57979c2e0a43c293
[ "MIT" ]
2
2019-08-15T11:51:17.000Z
2019-08-15T12:59:37.000Z
playground/toy_grads_compositional.py
TUIlmenauAMS/nca_mss
f0deb4b0acd0e317fb50340a57979c2e0a43c293
[ "MIT" ]
1
2020-08-11T14:25:45.000Z
2020-08-11T14:25:45.000Z
playground/toy_grads_compositional.py
TUIlmenauAMS/nca_mss
f0deb4b0acd0e317fb50340a57979c2e0a43c293
[ "MIT" ]
1
2021-03-16T12:30:31.000Z
2021-03-16T12:30:31.000Z
# -*- coding: utf-8 -*- __author__ = 'S.I. Mimilakis' __copyright__ = 'MacSeNet' import torch from torch.autograd import Variable import numpy as np dtype = torch.DoubleTensor np.random.seed(2183) torch.manual_seed(2183) # D is the "batch size"; N is input dimension; # H is hidden dimension; N_out is output dimens...
33.012346
112
0.726253